From 13273c5380761701b2466a06e838c8fd500bcf67 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Jul 2024 13:19:07 +0200 Subject: [PATCH] chore: re-adjust test for new login button --- e2e/login.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/login.spec.ts b/e2e/login.spec.ts index bb000b3f..0670a27a 100644 --- a/e2e/login.spec.ts +++ b/e2e/login.spec.ts @@ -66,7 +66,7 @@ test.describe('Login', () => { await expect(page.locator('button', { hasText: 'Login' })).not.toBeVisible(); // Test logout await page.locator('#avatar-drop').click(); - await page.locator('a:visible', { hasText: 'Sign Out' }).click(); + await page.locator('button', { hasText: 'Sign Out' }).click(); // Assert we're logged out again await expect(page.locator('button', { hasText: 'Login' })).toBeVisible(); });