2020-09-04 02:31:09 +00:00
|
|
|
export async function completeBenefitsSection() {
|
|
|
|
// Wait for Benefits section to appear
|
2020-10-29 18:51:37 +00:00
|
|
|
await page.waitForSelector(
|
|
|
|
'.woocommerce-profile-wizard__container.benefits'
|
|
|
|
);
|
2020-09-04 02:31:09 +00:00
|
|
|
|
|
|
|
// Wait for "No thanks" button to become active
|
2020-10-29 18:51:37 +00:00
|
|
|
await page.waitForSelector( 'button.is-secondary:not(:disabled)' );
|
2020-09-04 02:31:09 +00:00
|
|
|
|
|
|
|
// Click on "No thanks" button to move to the next step
|
|
|
|
await page.click( 'button.is-secondary' );
|
|
|
|
}
|