Skip to content

Commit d8e10a7

Browse files
committed
E2E: fix clearCart action.
1 parent 2f6408e commit d8e10a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/e2e/utils/helper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export async function clearCart( page ) {
2929
await page.goto( '/cart' );
3030

3131
if ( await page.locator( '.wp-block-woocommerce-cart-items-block' ).isVisible() ) {
32+
await page.locator( 'tr[aria-label="Loading products in cart…"]' ).first().waitFor({ state: 'hidden' });
3233
const removeBtns = await page.$$( '.wc-block-cart-item__remove-link' );
3334

3435
for ( const button of removeBtns ) {

0 commit comments

Comments
 (0)