two more minor E2E fixes

- add shipping zone for first checkout test
- increase wait time for product import to complete
This commit is contained in:
Ron Rennick 2021-04-30 16:26:51 -03:00
parent 946f8ec903
commit 7b23b8c8aa
2 changed files with 5 additions and 2 deletions

View File

@ -63,7 +63,7 @@ const runImportProductsTest = () => {
await expect(page).toClick('button[value="Run the importer"]'); await expect(page).toClick('button[value="Run the importer"]');
// Waiting for importer to finish // 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 page.waitForSelector('.woocommerce-importer-done');
await expect(page).toMatchElement('.woocommerce-importer-done', {text: 'Import complete!'}); await expect(page).toMatchElement('.woocommerce-importer-done', {text: 'Import complete!'});
}); });

View File

@ -9,7 +9,8 @@ const {
setCheckbox, setCheckbox,
settingsPageSaveChanges, settingsPageSaveChanges,
uiUnblocked, uiUnblocked,
verifyCheckboxIsSet verifyCheckboxIsSet,
addShippingZoneAndMethod,
} = require( '@woocommerce/e2e-utils' ); } = require( '@woocommerce/e2e-utils' );
const config = require( 'config' ); const config = require( 'config' );
@ -29,6 +30,8 @@ const runCheckoutPageTest = () => {
await merchant.login(); await merchant.login();
await createSimpleProduct(); await createSimpleProduct();
// Set free shipping within California
await addShippingZoneAndMethod('Free Shipping CA', 'state:US:CA', ' ', 'free_shipping');
// Go to general settings page // Go to general settings page
await merchant.openSettings('general'); await merchant.openSettings('general');