Add delay to reduce e2e test flakiness in OBW - Business Details

This commit is contained in:
Ilyas Foo 2021-06-18 18:19:27 +08:00
parent 44899677cf
commit e0db9beb20
1 changed files with 3 additions and 0 deletions

View File

@ -135,6 +135,9 @@ const completeOnboardingWizard = async () => {
// Business Details section // Business Details section
// Temporarily add delay to reduce test flakiness
await page.waitFor( 2000 );
// Query for the <SelectControl>s // Query for the <SelectControl>s
const selectControls = await page.$$( '.woocommerce-select-control' ); const selectControls = await page.$$( '.woocommerce-select-control' );
expect( selectControls ).toHaveLength( 2 ); expect( selectControls ).toHaveLength( 2 );