-
Notifications
You must be signed in to change notification settings - Fork 179
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
E2E Tests: Fix and skip flakey tests, improve debug output #11782
Conversation
packages/e2e-tests/src/specs/dashboard/settings/adminUser/customFonts.js
Outdated
Show resolved
Hide resolved
packages/e2e-tests/src/specs/dashboard/settings/adminUser/customFonts.js
Show resolved
Hide resolved
packages/e2e-tests/src/specs/editor/storyDetailsModal/adminUser.js
Outdated
Show resolved
Hide resolved
packages/e2e-tests/src/specs/dashboard/settings/adminUser/customFonts.js
Outdated
Show resolved
Hide resolved
One failing test |
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.
Running into percy issues.
|
This can happen when re-running failing tests multiple times, shouldn't cause issues |
Outside of the Percy noise I think all the skips etc... have issues assigned to them now. |
I see two issues right now at first glance: First of all, there are still some failing tests, see https://github.com/GoogleForCreators/web-stories-wp/runs/7520603772?check_suite_focus=true#step:10:165 Excerpt from logs:
If these fail consistently we need to skip them. Second, the sharding does not seem to work for Percy runs 😬 So basically every one of the Looks like it's because of how the arg is passed down to the command, see how the
854c67b should fix it. |
Look how fast this is now with proper sharding: We should be able to reduce to just 2 shards with similar execution time This one is still failing:
Let's disable it & create a ticket for it. We'd want to merge this PR with passing tests. |
@swissspidy here's a passing run for the end to end tests with no retries https://github.com/GoogleForCreators/web-stories-wp/runs/7528661369?check_suite_focus=true |
Still passing! @timarney Kudos for all your hard work on this!! 👏 👏 Now on to the next challenge of addressing all these flakey tests... |
Context
E2E test are having more test run failures. We need to stabilize tests where we can.
Example test run timing out after 30 min
https://github.com/GoogleForCreators/web-stories-wp/runs/6965907754?check_suite_focus=true
Summary
This PR addresses some of the issues with the flakey e2e tests
Generally seeing better test runs now -- if failures do occur re-running tests in that shard seem to pass.
Example run good run:
https://github.com/GoogleForCreators/web-stories-wp/actions/runs/2662886690
runAxeTestsForStoriesEditor
I would suggest merging this to move things forward and then re-looking at individual skipped tests.
Relevant Technical Choices
To-do
As a follow up we might want to look at automating failed steps with something like https://github.com/marketplace/actions/retry-step (to save manually re-running tests)
Notes
Errors
Stuck on Media and or Loading screen
#11782 (comment)
Error: net::ERR_SOCKET_NOT_CONNECTED
#11782 (comment)
Error: net::ERR_CONNECTION_RESET
#11782 (comment)
Artifact package
#11782 (comment)
Helpful for debugging:
Image capture using Base 64 -- was able to capture messages that didn't end up in the artifacts package
#11782 (comment)
User-facing changes
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
No
Does this PR change what data or activity we track or use?
No
Does this PR have a legal-related impact?
No
Checklist
Type: XYZ
label to the PRFixes #11803