From 7b23b8c8aa1ba5cc2f9b33fb0d3bac87b4cc7df0 Mon Sep 17 00:00:00 2001 From: Ron Rennick Date: Fri, 30 Apr 2021 16:26:51 -0300 Subject: [PATCH] two more minor E2E fixes - add shipping zone for first checkout test - increase wait time for product import to complete --- .../specs/merchant/wp-admin-product-import-csv.test.js | 2 +- .../e2e/core-tests/specs/shopper/front-end-checkout.test.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js b/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js index d3cb10e1b94..e3705010a93 100644 --- a/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js +++ b/tests/e2e/core-tests/specs/merchant/wp-admin-product-import-csv.test.js @@ -63,7 +63,7 @@ const runImportProductsTest = () => { await expect(page).toClick('button[value="Run the importer"]'); // Waiting for importer to finish - await page.waitForSelector('section.woocommerce-importer-done', {visible:true, timeout: 60000}); + await page.waitForSelector('section.woocommerce-importer-done', {visible:true, timeout: 120000}); await page.waitForSelector('.woocommerce-importer-done'); await expect(page).toMatchElement('.woocommerce-importer-done', {text: 'Import complete!'}); }); diff --git a/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js b/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js index 17e84c339c7..0ec9a92edc5 100644 --- a/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js +++ b/tests/e2e/core-tests/specs/shopper/front-end-checkout.test.js @@ -9,7 +9,8 @@ const { setCheckbox, settingsPageSaveChanges, uiUnblocked, - verifyCheckboxIsSet + verifyCheckboxIsSet, + addShippingZoneAndMethod, } = require( '@woocommerce/e2e-utils' ); const config = require( 'config' ); @@ -29,6 +30,8 @@ const runCheckoutPageTest = () => { await merchant.login(); await createSimpleProduct(); + // Set free shipping within California + await addShippingZoneAndMethod('Free Shipping CA', 'state:US:CA', ' ', 'free_shipping'); // Go to general settings page await merchant.openSettings('general');