Skip to content

Commit 56fb315

Browse files
committed
click on the label, since we're using custom checkboxes
1 parent c9167f1 commit 56fb315

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/e2e/sequential/onboarding.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ function onboardingTests( testContext = test ) {
1616
const popover = page.locator( '#prpl-popover-onboarding' );
1717
await expect( popover ).toBeVisible( { timeout: 10000 } );
1818

19-
// Check the privacy policy checkbox
20-
const privacyCheckbox = page.locator( '#prpl-privacy-checkbox' );
21-
await expect( privacyCheckbox ).toBeVisible();
22-
await privacyCheckbox.check();
19+
// Click on the privacy policy checkbox label (clicking label triggers the checkbox)
20+
const privacyLabel = page.locator( 'label[for="prpl-privacy-checkbox"]' );
21+
await expect( privacyLabel ).toBeVisible();
22+
await privacyLabel.click();
2323

2424
// Click "Start onboarding" button to accept privacy and proceed
2525
const startButton = popover.locator( '.prpl-tour-next' );

0 commit comments

Comments
 (0)