-
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
Migrate block hierarchy navigation tests to Playwright #51517
Conversation
await pageUtils.pressKeys( 'ctrl+`' ); | ||
|
||
// Navigate to the block settings sidebar and tweak the column count. | ||
await pageUtils.pressKeys( 'Tab', { times: 5 } ); |
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.
The original test used do...while
here, but I switched to a more straightforward approach. The test already relied on the "key * times" press in other areas.
Size Change: 0 B Total Size: 1.4 MB ℹ️ View Unchanged
|
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.
Thanks!
test/e2e/specs/editor/various/block-hierarchy-navigation.spec.js
Outdated
Show resolved
Hide resolved
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.
TBH I'm not sure how is this file different than the list-view
spec? 😅
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.
I believe the list-view
spec focuses or should focus on the List View component functionality, while this tests keyboard navigation around the editor and uses List View.
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.
I had no idea we had this test before adding some new ones in the list-view
spec, so possibly I have slipped in some tests that really should've been here 😅 .
Flaky tests detected in a7b8616. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5274886483
|
* Migrate block hierarchy navigation tests to Playwright * Remove old test file * Remove snapshot * Use locator fill
What?
Part of #38851.
Closes #48554.
Closes #47001.
Closes #50093.
PR migrates flaky block hierarchy navigation tests to Playwright.
Why?
The flaky test report for the
should navigate using the list view sidebar
issue has been updated 280+ times.Testing Instructions