mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-07 02:57:51 +00:00
test(auth): match theme toggle accessible name
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
f9e9496053
commit
69192fcf9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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"]')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue