-
Notifications
You must be signed in to change notification settings - Fork 1
Add e2e tests #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add e2e tests #20
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may put a cleanup code, flushing the database at the end. However, if you want to keep the dummy keys, you may put an optional script for that cleanup code. Speaking of scripts, you may add a script to run these tests, e.g "test": "playwright tests" and sth like "test:cleanup": "node scripts/cleanup-redis.js" for the cleanup @ytkimirti
tests/test.spec.ts
Outdated
|
||
await page.getByRole("button", { name: "Cancel" }).press("Escape") | ||
|
||
await page.getByRole("menuitem", { name: "Delete key" }).click() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since pressed escape above the context menu is closed, so you cannot click on Delete key again, hence this fails
@alitariksahin I already have it running before the tests and I put a system to dedect if there are any modifications made to the database or not. It should be fine |
No description provided.