Merge branch 'master' into fix/26847-rest-api-auth

This commit is contained in:
James Collins 2020-09-05 09:02:54 +08:00
commit b84080c67e
No known key found for this signature in database
GPG Key ID: 0669E767111C190F
1 changed files with 9 additions and 4 deletions

View File

@ -93,7 +93,7 @@ const completeOnboardingWizard = async () => {
expect( industryCheckboxes ).toHaveLength( 9 );
// Select all industries including "Other"
for ( let i = 0; i < 10; i++ ) {
for ( let i = 0; i < 9; i++ ) {
await industryCheckboxes[i].click();
}
@ -149,9 +149,14 @@ const completeOnboardingWizard = async () => {
await page.waitForSelector( '.woocommerce-select-control__control' );
await expect( page ).toClick( '.woocommerce-select-control__option', { text: config.get( 'onboardingwizard.sellingelsewhere' ) } );
// Disable business extension downloads
const pluginToggle = await page.$( '.woocommerce-business-extensions .components-checkbox-control__input-container' );
pluginToggle.click();
// Query for the extensions toggles
const extensionsToggles = await page.$$( '.components-form-toggle__input' );
expect( extensionsToggles ).toHaveLength( 3 );
// Disable download of the 3 extensions
for ( let i = 0; i < 3; i++ ) {
await extensionsToggles[i].click();
}
// Wait for "Continue" button to become active
await page.waitForSelector( 'button.is-primary:not(:disabled)' );