diff --git a/tests/e2e/core-tests/specs/index.js b/tests/e2e/core-tests/specs/index.js index 03141dc3914..61fe57e7d2f 100644 --- a/tests/e2e/core-tests/specs/index.js +++ b/tests/e2e/core-tests/specs/index.js @@ -51,13 +51,13 @@ const runMerchantTests = () => { runAddSimpleProductTest(); runAddVariableProductTest(); runUpdateGeneralSettingsTest(); + runAddNewShippingZoneTest(); runProductSettingsTest(); runTaxSettingsTest(); runOrderStatusFiltersTest(); runOrderRefundTest(); runOrderApplyCouponTest(); runMerchantOrdersCustomerPaymentPage(); - runAddNewShippingZoneTest(); } module.exports = { diff --git a/tests/e2e/core-tests/specs/merchant/wp-admin-settings-shipping-zones.test.js b/tests/e2e/core-tests/specs/merchant/wp-admin-settings-shipping-zones.test.js index db705deefda..d13857b8369 100644 --- a/tests/e2e/core-tests/specs/merchant/wp-admin-settings-shipping-zones.test.js +++ b/tests/e2e/core-tests/specs/merchant/wp-admin-settings-shipping-zones.test.js @@ -68,7 +68,7 @@ const runAddNewShippingZoneTest = () => { // Verify shipping costs await page.waitForSelector('.order-total'); - await expect(page).toMatchElement('.shipping .amount', {text: '$10.00'}, 2000); + await expect(page).toMatchElement('.shipping .amount', {text: '$10.00'}); await expect(page).toMatchElement('.order-total .amount', {text: '$19.99'}); await shopper.removeFromCart(simpleProductName); @@ -91,7 +91,7 @@ const runAddNewShippingZoneTest = () => { // Verify shipping method and cost await page.waitForSelector('.order-total'); await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Free shipping'}); - await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'}, 2000); + await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'}); await shopper.removeFromCart(simpleProductName); }) @@ -108,7 +108,7 @@ const runAddNewShippingZoneTest = () => { // Verify shipping method and cost await page.waitForSelector('.order-total'); - await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Local pickup'}, 2000); + await expect(page).toMatchElement('.shipping ul#shipping_method > li', {text: 'Local pickup'}); await expect(page).toMatchElement('.order-total .amount', {text: '$9.99'}); await shopper.removeFromCart(simpleProductName);