Skip to content

Commit 2f7c724

Browse files
committed
fix e2e back to auto
1 parent 166d42f commit 2f7c724

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/admin/e2e/general/e2e.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,12 @@ describe('General', () => {
304304
})
305305

306306
describe('theme', () => {
307-
test('should render light theme by default', async () => {
307+
test('should default to automatic theme mode', async () => {
308308
await page.goto(postsUrl.admin)
309309
await expect(page.locator('html')).toHaveAttribute('data-theme', 'light')
310310
await page.goto(`${postsUrl.admin}/account`)
311-
await expect(page.locator('#field-theme-light')).toBeChecked()
311+
await expect(page.locator('#field-theme-auto')).toBeChecked()
312+
await expect(page.locator('#field-theme-light')).not.toBeChecked()
312313
await expect(page.locator('#field-theme-dark')).not.toBeChecked()
313314
})
314315

0 commit comments

Comments
 (0)