-
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
E2E Tests: Migrate style variations tests to Playwright #41427
Conversation
Size Change: +198 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
1cf418e
to
cf7f2bd
Compare
3ea7734
to
4a1b76e
Compare
21a44a4
to
b534f82
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.
Thanks for starting this! Remember to checkout the best practices guide and follow them wherever possible. I think this has a great start though!
Thanks for helping with this one @kevin940726 !! I'm learning a lot. The first pass was just pulling everything across and getting things to work. I've added a bunch of aria-labels to navigation buttons to help tighten up the tests. There are also still a few things left to do, such as refactoring the class name assertions as you recommend, and probably inlining some more methods. I'll ping for another 👀 after I finish that if you don't mind. 🙇 |
🤞 I think this is in better shape @kevin940726, thanks for the pointers. Once we land #41591 I can refactor the classname assertions. |
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 for also fixing the aria issues!
e2738ce
to
047f27c
Compare
I think this is nearly ready! Thanks for your patience @kevin940726 Dismissing the styles welcome guide appears to have done the trick! |
fd7aae7
to
4c126e5
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.
Awesome, thanks! I think you missed some selectors (😅) but overall it's pretty good! Feel free to merge it after fixing those places 👍
Migrating final tests and removing original
Refactoring style variations tests
Rename openOtherStyles to browseStyles Replace body.evaluate
Tidying up selectors and assertions
Dismissing Styles Welcome Guide :D
4c126e5
to
c697046
Compare
What?
An attempt to chip in and migrate a playwright test.
This might go horribly wrong and blow up.
Why?
Part of the effort to move to Playwright. See: #38851
How?
Reading https://playwright.dev/docs 😄
Testing Instructions
You might have to restart wp-env after checking out this branch, then run: