-
Notifications
You must be signed in to change notification settings - Fork 4.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
WIP: Fix flaky Site Editor writing flow tests #49754
Conversation
Size Change: -43 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Flaky tests detected in f15b795. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4678658140
|
I noticed that tests fail locally with the @kevin940726, I found a workaround by using |
await editor.canvas.click( 'body' ); | ||
|
||
// Wait for the template part to be loaded. | ||
await page.waitForLoadState( 'networkidle' ); |
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.
Wild idea: How about adding this to visitSiteEditor
so that we solve all the site editor flakiness automatically? 😅
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.
Oh, this gives me some ideas. I'll update in #49374.
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.
Updated in 7aff89a!
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.
We can also update visitSiteEditor
and visitAdminPage
to accept options passed to page.goto
- https://playwright.dev/docs/api/class-page#page-goto-option-url.
Closing this in favor of #49374. |
What?
🚧
See: #48504, #49025
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast