-
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
E2E tests: try to fix flaky global styles revisions tests #50454
Conversation
Ensuring we save any unsaved changes after then unsaved changes tests to avoid lingering unsaved changes. Updated a typo in a non-related e2e file
Size Change: -11 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
@@ -27,7 +27,7 @@ test.describe( 'Style Book', () => { | |||
).toBeVisible(); | |||
} ); | |||
|
|||
test( 'should disable toolbar butons when open', async ( { page } ) => { | |||
test( 'should disable toolbar buttons when open', async ( { page } ) => { |
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 couldn't help myself
Will this also fix #50419? :) |
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 👍 Thanks a lot!
Oooh! I think so. Thanks for reminding me and for the quick review @kevin940726 🙇 |
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.
Changes LGTM as well 🚢
After 10 runs, I didn't get any errors from the updated e2es.
What?
Hopefully fixes #49708
Also hopefully resolves #50419
Updates e2e tests recently introduced in #50089 to:
Why?
The tests would fail every second run, complaining that it could not find the save button after changing the styles.
I'm not entirely sure why as the tests attempt to apply non-saved styles, which should trigger a dirty state.
Saving all changes appears to fix it.
Testing Instructions
Run this lots of times:
npm run test:e2e:playwright -- site-editor/user-global-styles-revisions.spec