Add in missing awaits that could have been causing tests to be flaky. (https://github.com/woocommerce/woocommerce-admin/pull/6800)

This commit is contained in:
Sam Seay 2021-04-15 09:20:44 +12:00 committed by GitHub
parent 55add24ef3
commit 97d143b762
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ export class OnboardingWizard extends BasePage {
await this.clickButtonWithText( 'No thanks' );
}
this.page.waitForNavigation( {
await this.page.waitForNavigation( {
waitUntil: 'networkidle0',
timeout: 2000,
} );

View File

@ -90,7 +90,7 @@ export class StoreDetailsSection extends BasePage {
}
async selectSetupForClient() {
setCheckbox( '.components-checkbox-control__input' );
await setCheckbox( '.components-checkbox-control__input' );
}
async checkClientSetupCheckbox( selected: boolean ) {