We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 166d42f commit 2f7c724Copy full SHA for 2f7c724
1 file changed
test/admin/e2e/general/e2e.spec.ts
@@ -304,11 +304,12 @@ describe('General', () => {
304
})
305
306
describe('theme', () => {
307
- test('should render light theme by default', async () => {
+ test('should default to automatic theme mode', async () => {
308
await page.goto(postsUrl.admin)
309
await expect(page.locator('html')).toHaveAttribute('data-theme', 'light')
310
await page.goto(`${postsUrl.admin}/account`)
311
- await expect(page.locator('#field-theme-light')).toBeChecked()
+ await expect(page.locator('#field-theme-auto')).toBeChecked()
312
+ await expect(page.locator('#field-theme-light')).not.toBeChecked()
313
await expect(page.locator('#field-theme-dark')).not.toBeChecked()
314
315
0 commit comments