Skip to content

Commit

Permalink
FIx flaky tests in shortcode UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelzaleski committed Feb 25, 2025
1 parent 6dbb42d commit 6ff6cfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/e2e/tests/checkout/shortcode/lpms/ach.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ test.describe( 'ACH payment tests @shortcode', () => {
config.get( 'addresses.customer.billing' )
);
await page.getByText( 'ACH Direct Debit' ).click();
await page.waitForTimeout( 1000 );
await page
.locator( '.woocommerce-SavedPaymentMethods-token' )
.first()
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e/utils/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ export const setupACHCheckout = async ( page, checkoutType = 'blocks' ) => {
page,
config.get( 'addresses.customer.billing' )
);

// Select ACH in shortcode checkout
await page.getByText( 'ACH Direct Debit' ).click();
await page.waitForTimeout( 1000 );

// Click "Test Institution"
await page
Expand Down

0 comments on commit 6ff6cfc

Please sign in to comment.