Skip to content

Commit 4f9dffc

Browse files
committed
more 2e2 tweaks
1 parent 56fb315 commit 4f9dffc

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

tests/e2e/sequential/onboarding.spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ function onboardingTests( testContext = test ) {
1717
await expect( popover ).toBeVisible( { timeout: 10000 } );
1818

1919
// Click on the privacy policy checkbox label (clicking label triggers the checkbox)
20-
const privacyLabel = page.locator( 'label[for="prpl-privacy-checkbox"]' );
20+
const privacyLabel = page.locator(
21+
'label[for="prpl-privacy-checkbox"]'
22+
);
2123
await expect( privacyLabel ).toBeVisible();
2224
await privacyLabel.click();
2325

@@ -38,19 +40,17 @@ function onboardingTests( testContext = test ) {
3840
const closeButton = page.locator( '#prpl-tour-close-btn' );
3941
await closeButton.click();
4042

41-
// Verify onboarding is closed and dashboard elements are visible
42-
await expect( popover ).not.toBeVisible( { timeout: 5000 } );
43-
await expect(
44-
page.locator( '.prpl-widget-wrapper.prpl-suggested-tasks' )
45-
).toBeVisible( { timeout: 15000 } );
43+
// Verify onboarding popover is closed/hidden
44+
await expect( popover ).toBeHidden( { timeout: 5000 } );
4645

4746
// Visit the WP Dashboard page and back to the Progress Planner page
4847
await page.goto( '/wp-admin/' );
4948
await page.goto( '/wp-admin/admin.php?page=progress-planner' );
5049
await page.waitForLoadState( 'networkidle' );
5150

52-
// Verify onboarding doesn't restart (progress was saved)
53-
await expect( popover ).not.toBeVisible( { timeout: 5000 } );
51+
// Verify onboarding doesn't auto-start (progress was saved)
52+
// The popover element exists but should be hidden (not auto-opened)
53+
await expect( popover ).toBeHidden( { timeout: 5000 } );
5454
}
5555
);
5656
} );

0 commit comments

Comments
 (0)