From 40446b8795ee730f46c51e08e5438f1f9c1b2608 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 15 Feb 2026 12:37:43 +0100 Subject: [PATCH] Use semantic click for logout instead of dispatchEvent The dropdown already gets aria-label from data-tooltip-content via the ARIA dropdown patch, so we can open it with getByLabel and then click Sign Out normally. Co-Authored-By: Claude Opus 4.6 --- tests/e2e/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/utils.ts b/tests/e2e/utils.ts index 7cf7a4c64cf..1b7b4992b95 100644 --- a/tests/e2e/utils.ts +++ b/tests/e2e/utils.ts @@ -11,7 +11,7 @@ export async function login(page: Page) { } export async function logout(page: Page) { - await page.getByText('Sign Out').dispatchEvent('click'); - await page.waitForURL('**/'); + await page.getByLabel('Profile and Settings…').click(); + await page.getByText('Sign Out').click(); await expect(page.getByRole('link', {name: 'Sign In'})).toBeVisible(); }