Skip to content

Commit

Permalink
await any body class
Browse files Browse the repository at this point in the history
  • Loading branch information
e111077 committed Feb 28, 2024
1 parent f795cfa commit 77abcbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lit-dev-tests/src/playwright/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const preventGDPRBanner = async (page: Page) => {
};

export const waitForTheme = async (page: Page, dark: boolean) => {
await page.waitForSelector('body.auto');
await page.waitForSelector('body.auto,body.light,body.dark');

if (dark) {
await page.locator('body').evaluate((body) => {
Expand Down

0 comments on commit 77abcbf

Please sign in to comment.