-
Notifications
You must be signed in to change notification settings - Fork 69
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
Convert the Merchant Order Status Change E2E spec to Playwright #10243
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.37 MB ℹ️ View Unchanged
|
await merchantPage.waitForSelector( cancelModalSelector, { | ||
state: 'visible', | ||
} ); |
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.
In the doc for waitForSelector
it says:
Use web assertions that assert visibility or a locator-based locator.waitFor() instead.
Would we want to swap these out? The code would be a little more complex from what I see, but it may be a little more future proof, unless I am missing something.
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.
Great call! I've updated the code to use locator.waitFor() instead on 70add24. Thanks for raising that!
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.
Thank you for making the revisions I asked about. I ran the tests with no issues, and everything seems to be covered and very well labeled (thank you for that).
Pending the changes to fix conflicts, this should be good to go.
…g order" This reverts commit 073e8f0.
Co-authored-by: Taha Paksu <[email protected]>
Fixes #9965
Changes proposed in this Pull Request
This PR aims to migrate the "Merchant > Order Status Change" spec to Playwright, removing the corresponding test from the Puppeteer test suite.
Testing instructions
npm run test:e2e-reset
npm run test:e2e-setup
npm run test:e2e-pw merchant-orders-status-change.spec
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge