Skip to content

Commit

Permalink
provide helper method for the test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov committed Dec 12, 2023
1 parent a4f086a commit 786b3a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/e2e/utils/flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ export const shopperWCP = {
await expect( page ).toClick( 'label', { text: label } );
},

setDefaultPaymentMethod: async () => {
await expect( page ).toClick( '.button.default' );
await page.waitForNavigation( { waitUntil: 'networkidle0' } );
},

toggleCreateAccount: async () => {
await expect( page ).toClick( '#createaccount' );
},
Expand Down

0 comments on commit 786b3a4

Please sign in to comment.