-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 Font Size Picker tests to Playwright #46591
Conversation
Size Change: 0 B Total Size: 1.32 MB ℹ️ View Unchanged
|
This comment was marked as outdated.
This comment was marked as outdated.
Do we need |
This comment was marked as outdated.
This comment was marked as outdated.
return doSet( obj, 0 ); | ||
} | ||
|
||
window.wp.data.dispatch( 'core/block-editor' ).updateSettings( |
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.
This settings update is a bit unreliable. Based on Playwright's trace, default font sizes can be restored in the middle of the test.
I'm thinking of extracting it into a new plugin and enabling/disabling it for this group of tests.
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 rerun tests on CI 4 times, and they pass without an issue. Probably only my local setup was flaky.
I think this is ready for review. I can try using the new fonts plugin if tests keep failing in the future.
b8c4caa
to
85b03c7
Compare
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.
LGTM!
I have run the test several times in my local environment and it has never failed.
I believe the instability of this test has been resolved 🙂
Thanks for testing, @t-hamano! |
What?
Part of #38851.
Migrates
font-size-picker.test.js
to Playwright.Why?
It had a few flaky tests, and one has been failing a lot lately.
Closes #45392
Closes #45580
Closes #45556
How?
See MIGRATION.md for migration steps.
Note: I've inlined most of the helpers the previous test used since those were 2-3 lines long.
Testing Instructions