Skip to content

Commit

Permalink
E2E Tests: Fix LOHP tests (#97338)
Browse files Browse the repository at this point in the history
Scrolling list of themes needs to be hovered on before click, otherwise
not considered stable by Playwright.
  • Loading branch information
aidvu authored Dec 11, 2024
1 parent 84adffd commit 5c2e260
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/specs/onboarding/signup__with-theme-LOHP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ describe( 'Lifecyle: Logged Out Home Page, signup, onboard, launch and cancel su
const pageMatch = new URL( themeButtonUrl.href ).search.match( 'theme=([a-z]*)?&' );
themeSlug = pageMatch?.[ 1 ] || null;

// Hover, otherwise the element isn't considered stable, and is out of the viewport.
await themeCard.hover();
await themeCard.getByText( 'Start with this theme' ).click();
} );

Expand Down

0 comments on commit 5c2e260

Please sign in to comment.