Skip to content

Commit 40929bb

Browse files
authored
Fix E2E shopper subscription failure due to change in the checkout button (#11019)
1 parent 3cc9eaf commit 40929bb

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Significance: patch
2+
Type: dev
3+
Comment: Fix E2E test failures as the follow-up of PR 11013
4+
5+

tests/e2e/env/setup.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@ echo
417417
echo "WooCommerce version:"
418418
cli_debug wp plugin get woocommerce --field=version
419419

420+
if [[ ! ${SKIP_WC_SUBSCRIPTIONS_TESTS} ]]; then
421+
echo
422+
echo "WooCommerce Subscriptions version:"
423+
cli_debug wp plugin get woocommerce-subscriptions --field=version
424+
fi
425+
420426
echo
421427
echo "Docker environment:"
422428
cli_debug wp cli info

tests/e2e/specs/subscriptions/shopper/shopper-subscriptions-purchase-free-trial.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describeif( shouldRunSubscriptionsTests )(
130130
const card = config.cards[ '3dsOTP' ];
131131
await fillCardDetails( shopperPage, card );
132132
await shopperPage
133-
.getByRole( 'button', { name: 'Add to cart', exact: true } )
133+
.getByRole( 'button', { name: 'Place order', exact: true } )
134134
.click();
135135
await shopperPage.frames()[ 0 ].waitForLoadState( 'load' );
136136
await confirmCardAuthentication( shopperPage, true );

0 commit comments

Comments
 (0)