-
Notifications
You must be signed in to change notification settings - Fork 305
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
test: write tests for user management #1316
Conversation
@barinali here's the problem + possible solutions for the current snackbar logic Snackbar closingTest caseConsider the following test case:
In this test case, we want to test for an associated snackbar message await page.snackbar.waitFor({ state: 'visible' }) If we run this check after creating a user, and then after deleting await page.snackbar.waitFor({ state: 'visible' }) could be executed before the second snackbar message is created. This page.getSnackbar() before the second snackbar is on the page, it will return the properties Also, because we don't control when each step in the tests run, we might Solutions
Note that we cannot reliably depend on looking at the count of snackbar messages, since this is non-deterministic between test runs, machines, etc. Also note that 1+2 are probably the ideal solution, since |
abd2cfd
to
79f7033
Compare
No description provided.