-
Notifications
You must be signed in to change notification settings - Fork 68
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 shopper purchasing multiple subscriptions E2E test to Playwright #10170
Convert shopper purchasing multiple subscriptions E2E test to Playwright #10170
Conversation
…bscriptions-purchase-multiple
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.36 MB ℹ️ View Unchanged
|
…bscriptions-purchase-multiple
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 working on this Taha. I've left one nitpick. Other than that, the code looks good. However, the test fails on my local in both headless and UI mode at the last step due to the multi-currency issue. I can see that the tests are passing on GH Actions which is great.
Let's huddle up on this tomorrow when we are both on to see if we can get to the bottom of the issue.
describeif( shouldRunSubscriptionsTests )( | ||
'Subscriptions > Purchase multiple subscriptions', | ||
() => { | ||
let merchantPage, shopperPage: 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.
Nitpick: I think we should change this to:
let merchantPage: Page, shopperPage: Page;
Otherwise I'm seeing that merchantPage
implicitly has an any
type.
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.
Yep, that's right, thanks for catching it!
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.
Added it in b038179.
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 addressing the issue with the currency symbol not being in the string and adding the type definition to the variable. The tests are passing for me now.
LGTM
Fixes #10087
Changes proposed in this Pull Request
This PR adds a new E2E test focusing on shopper purchasing multiple subscriptions using Playwright, and removes the existing one from Puppeteer.
Testing instructions
npm run test:e2e-pw shopper-subscriptions-purchase-multiple
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