add wait between loading shop and add to cart (#30017)
This commit is contained in:
parent
0c762a3266
commit
f3908c9fe9
|
@ -9,6 +9,7 @@ const {
|
|||
uiUnblocked,
|
||||
applyCoupon,
|
||||
removeCoupon,
|
||||
waitForSelectorWithoutThrow,
|
||||
} = require( '@woocommerce/e2e-utils' );
|
||||
|
||||
/**
|
||||
|
@ -33,6 +34,7 @@ const runCheckoutApplyCouponsTest = () => {
|
|||
couponFixedProduct = await createCoupon('5', 'Fixed product discount');
|
||||
await shopper.emptyCart();
|
||||
await shopper.goToShop();
|
||||
await waitForSelectorWithoutThrow( '.add_to_cart_button' );
|
||||
await shopper.addToCartFromShopPage('Simple product');
|
||||
await uiUnblocked();
|
||||
await shopper.goToCheckout();
|
||||
|
|
Loading…
Reference in New Issue