From 5c2e26069648b673ac546ba2ada83d27e99c7c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrija=20Vu=C4=8Dini=C4=87?= Date: Wed, 11 Dec 2024 16:24:51 +0100 Subject: [PATCH] E2E Tests: Fix LOHP tests (#97338) Scrolling list of themes needs to be hovered on before click, otherwise not considered stable by Playwright. --- test/e2e/specs/onboarding/signup__with-theme-LOHP.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/specs/onboarding/signup__with-theme-LOHP.ts b/test/e2e/specs/onboarding/signup__with-theme-LOHP.ts index 3e28e3c915e15f..67cbd17a3507e7 100644 --- a/test/e2e/specs/onboarding/signup__with-theme-LOHP.ts +++ b/test/e2e/specs/onboarding/signup__with-theme-LOHP.ts @@ -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(); } );