File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ) ;
You can’t perform that action at this time.
0 commit comments