You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The snackbar that pops up upon save can cause playwright tests to be flaky, as it can be sometimes covering an element that playwright wants to click on. So instead of playwright finding the element it wants to click, it instead clicks on the snackbar, causing the test to fail.
This results in playwright tests sometimes passing and sometimes failing.
Furthermore, the placement of it is on the opposite side of the screen from the Save/Publish/Update button, meaning if you want to click it, it requires great mouse dexterity in the hands of the user.
What is your proposed solution?
Remove the use of the snackbar component entirely. If the messages are important, they should be persistent.
If the snackbar cannot be removed entirely, all messages should be manually dismissed.
The text was updated successfully, but these errors were encountered:
E2E test should match actual user behavior. You'll have to close the snackbar before clicking the elements behind it. This is what we do in project e2e tests.
Furthermore, the placement of it is on the opposite side of the screen from the Save/Publish/Update button, meaning if you want to click it, it requires great mouse dexterity in the hands of the user.
What problem does this address?
The snackbar that pops up upon save can cause playwright tests to be flaky, as it can be sometimes covering an element that playwright wants to click on. So instead of playwright finding the element it wants to click, it instead clicks on the snackbar, causing the test to fail.
This results in playwright tests sometimes passing and sometimes failing.
Additionally, snackbars and toasts are generally not good for accessibility. See: https://www.erikkroes.nl/blog/burn-your-toast/
Furthermore, the placement of it is on the opposite side of the screen from the Save/Publish/Update button, meaning if you want to click it, it requires great mouse dexterity in the hands of the user.
What is your proposed solution?
Remove the use of the snackbar component entirely. If the messages are important, they should be persistent.
If the snackbar cannot be removed entirely, all messages should be manually dismissed.
The text was updated successfully, but these errors were encountered: