Wait for cart to be removed when emptied (https://github.com/woocommerce/woocommerce-blocks/pull/9829)
This commit is contained in:
parent
31138031f6
commit
c30c6afc53
|
@ -171,11 +171,10 @@ export const shopper = {
|
|||
await uiUnblocked();
|
||||
}
|
||||
|
||||
await page.waitForSelector( '.woocommerce-info' );
|
||||
// eslint-disable-next-line jest/no-standalone-expect
|
||||
await expect( page ).toMatchElement(
|
||||
'.woocommerce-info.cart-empty'
|
||||
);
|
||||
// Wait for form to be hidden.
|
||||
await page.waitForSelector( '.woocommerce-cart-form', {
|
||||
hidden: true,
|
||||
} );
|
||||
},
|
||||
|
||||
placeOrder: async () => {
|
||||
|
|
Loading…
Reference in New Issue