-
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
Re-enable skipped Gallery block e2e test #45266
Conversation
Size Change: 0 B Total Size: 1.28 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!
await expect( page.locator( '.media-frame' ) ).toBeVisible(); | ||
await expect( page.locator( '.media-frame-title h1' ) ).toContainText( | ||
'Create gallery' | ||
); | ||
await expect( | ||
page.locator( '.media-toolbar-primary button' ) | ||
).toContainText( 'Create a new gallery' ); |
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.
Is it possible to refactor these selectors into role selectors?
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.
Sure. Initially, I thought we wanted to check that these elements have correct text, hence the toContainText
usage. But we can do the same with role selectors.
Edit: Updated in 6015d51.
6015d51
to
7da8efa
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
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.
Nice one! Thanks! 💯
Seems like the react native e2e tests failure is unrelated. I think we can merge this. |
What?
This is a follow-up to #45202 (comment).
PR re-enables skipped Gallery block e2e tests. I've also updated the test to use locators.
Testing Instructions