Skip to content

Commit

Permalink
Add afterEach page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
allie500 committed Feb 6, 2025
1 parent 069eca1 commit 73c6ab5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ describeif( shouldRunWCBlocksTests )(
);
} );

/**
* Reload the page after each test to ensure a clean state.
* Otherwise we get flaky results.
*/
test.afterEach( async () => {
await shopperPage.reload();
} );

test.afterAll( async () => {
await shopper.emptyCart( shopperPage );
} );
Expand Down

0 comments on commit 73c6ab5

Please sign in to comment.