-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Wait for modal to open before testing its content #5993
Conversation
Capybara needs to be told to expect that the modal is open before we can check for content present in it. Fixes a lot of extremely flaky specs.
If the modal cannot be openend after 5 seconds (Capybara default wait tiem is 3 seconds) then something is wrong. We must not waste precious resources and time for a buld to fail.
@MadelineCollier this should make your life a bit easier. |
💔 Some backports could not be created
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
💔 Some backports could not be created
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
💔 Some backports could not be created
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5993 +/- ##
=======================================
Coverage 89.46% 89.46%
=======================================
Files 782 782
Lines 17999 17999
=======================================
Hits 16102 16102
Misses 1897 1897 ☔ View full report in Codecov by Sentry. |
Thanks @tvdeyen ! Dealing with a few flaky specs relating to this as we speak |
Building off of solidusio#5993, a few more specs required a short wait time to give the modal a chance to load. They were flaky (failing somewhat regularly in CI, but always passing locally) and this should help remedy that.
Unfortunately some are still flaky and most of that can only be solved by fixing the underlying issues (as mentioned in #5945) with how the new admin is implemented. As we continue to build on top of that, I would suggest to not just copy existing specs as we making the issues worse. |
Capybara needs to be told to expect that the modal is open before we can check for content present in it.
Fixes a lot of extremely flaky specs.