From 69192fcf9bcef153c115819f6c7e23900e6e17f6 Mon Sep 17 00:00:00 2001 From: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:07:01 +0800 Subject: [PATCH] test(auth): match theme toggle accessible name Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --- web/e2e/auth-entry.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/e2e/auth-entry.spec.ts b/web/e2e/auth-entry.spec.ts index d95fff34..e54def22 100644 --- a/web/e2e/auth-entry.spec.ts +++ b/web/e2e/auth-entry.spec.ts @@ -164,7 +164,7 @@ test.describe('Auth Entry', () => { await page.getByRole('button', { name: 'Personal login' }).click() await expect(page.getByLabel('Password', { exact: true })).toBeVisible() - const themeSwitch = page.getByRole('switch', { name: 'Dark mode' }) + const themeSwitch = page.getByRole('switch', { name: 'Dark theme' }) if (await themeSwitch.getAttribute('aria-checked') === 'true') await themeSwitch.click() const lightArtwork = page.locator('img[src$="/login-skill-art-light.png"]') const darkArtwork = page.locator('img[src$="/login-skill-art-dark.png"]')