From 781ad1dba6f4e98be3fd83d9ce65c89da8634bfd Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 2 May 2024 11:16:27 -0600 Subject: [PATCH] Fix failing test --- tests/e2e/specs/payment-flow/subscription-payment.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/specs/payment-flow/subscription-payment.test.js b/tests/e2e/specs/payment-flow/subscription-payment.test.js index 170323c..9977870 100644 --- a/tests/e2e/specs/payment-flow/subscription-payment.test.js +++ b/tests/e2e/specs/payment-flow/subscription-payment.test.js @@ -52,7 +52,7 @@ test.describe( 'Verify Payfast Subscription Payment Process - @foundational', as const payfastPaymentMethod = await checkoutBlock.locator( 'label[for="radio-control-wc-payment-method-options-payfast"]' ); await payfastPaymentMethod.click(); - await checkoutBlock.getByRole( 'button', {name: 'Place Order'} ).click(); + await checkoutBlock.locator( 'button.wc-block-components-checkout-place-order-button' ).click(); await waitForURL; // Pay on Payfast checkout page.