-
Notifications
You must be signed in to change notification settings - Fork 72
E2E - Fix failures for Shopper: Subscription #11013
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
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: 870 kB ℹ️ 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.
E2E tests seem to pass, and the change makes sense given the Subscriptions PR as context. Thank you for addressing this!
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.
hi - noting we are discussing the subscriptions changes in p1755823173573979-slack-C8X6Q7XQU and these E2Es may become incorrect shortly after the upstream bug is fixed.
@@ -130,7 +130,7 @@ describeif( shouldRunSubscriptionsTests )( | |||
const card = config.cards[ '3dsOTP' ]; | |||
await fillCardDetails( shopperPage, card ); | |||
await shopperPage | |||
.getByRole( 'button', { name: 'Sign up now' } ) | |||
.getByRole( 'button', { name: 'Add to cart', exact: true } ) |
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.
This change probably won't be needed - the change in subscriptions is incorrect as the Checkout page should not say "Add to cart". My guess is that it would be changed back to "Sign up now"
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.
@opr - thanks for the info. However, the Slack convo is about the Checkout
page only, while the problem with our E2E tests is on the single product page (see the screenshot in my PR description, which is from the failed E2E test).
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 am going to merge this PR now. Will follow up the convo and revert the fix if needed, but I don't think that's the case, given looking at your PR too https://github.com/woocommerce/woocommerce-subscriptions/pull/5043
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 checking! I appreciate the reply and info.
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.
But hold on, earlier in this test, line 115 it says:
// Proceed to the checkout page and verify that the 14-day free trial is shown in the product line item,
// and that the first renewal date is 14 days from now.
await setupCheckout( shopperPage, customerBilling );
You may want to double check this one after my PR is merged in subscriptions
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.
Oh @opr, you're totally right. We will need to update it back to Place order
or Sign up now
when the next version of WooCommerce Subscription is released!
Fixes WOOPMNT-5278
Errors from multiple branches recently in
WC - latest | subscriptions - shopper
For example, PR #11009 with this job log https://github.com/Automattic/woocommerce-payments/actions/runs/17140352651/job/48626327524
Root cause
From screenshots in the artifact, it seems all
Sign up now
texts have been changed to the default Woo button textAdd to cart
This matches with the latest release of WooCommerce Subscriptions 7.8.0 on Aug 20 with this PR https://github.com/woocommerce/woocommerce-subscriptions/pull/4970
Changes proposed in this Pull Request
Testing instructions
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