add wait between loading shop and add to cart (#30017)

This commit is contained in:
Ron Rennick 2021-06-03 11:07:55 -03:00 committed by GitHub
parent 0c762a3266
commit f3908c9fe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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();