-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
FillBlankFormTest#app_ShouldNotCrash
is flakey
#5662
Comments
This is in |
It failes in:
it's because of checking the new snackbar so I don't think there is something wrong with that particular test but maybe generally with testing snackbars? |
Yeah this definitely backs up that theory: https://console.firebase.google.com/project/api-project-322300403941/testlab/histories/bh.f6f8331e5ae6e371/matrices/7884108888395309184/details?stepId=bs.6c6af3002b159be0&testCaseId=14. I'm wondering if we should move to a similar approach as we have toasts. I guess snackers are inherently hard to UI test as they disappear. We might be able to do something as simple as keeping them on screen indefinitely, another approach would be to wrap snackbar creation in a component that can be switched out during tests for a recording version that we can make assertions on. |
Ok I've spent some time investigating the issue and here are my thoughts:
So the solution would be to programmatically dismiss the old Snackbar when a new one is about to be displayed. We already do that with Toasts so it looks like we had a similar issue there. |
That makes sense to me. I'd been trying to work out if Snackbars get hidden when another is shown for something else (unrelated to this issue), and I'd seen that it does look that's handled in |
We've seen a this test fail a few times now even though it looks like everything is working correctly in the video (https://console.firebase.google.com/project/api-project-322300403941/testlab/histories/bh.f6f8331e5ae6e371/matrices/8855972944306261818/details?stepId=bs.de451e242e6def7a&testCaseId=5&tabId=video).
The text was updated successfully, but these errors were encountered: