Skip to content

Commit

Permalink
Handle highlights in footer in page snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Sep 16, 2024
1 parent b43865c commit 600e5e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/test/playwright/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ export const preparePageForTests = async (
dismissedBanners: dismissBanners ? ALL_TEST_BANNERS : [],
isFilterDismissed: dismissFilter ?? false,
breakpoint,
isDarkModeSeen: true,
},
}
if (options.features) {
Expand Down Expand Up @@ -254,6 +253,14 @@ export const preparePageForTests = async (
delete cookiesToSet.features[name]
}
}

/**
* TODO: Remove this when the theme selector is no longer highlighted.
*/
await page.locator("#theme").click()
await page.locator("#theme").blur()
await page.mouse.move(0, 0)

await setCookies(page.context(), cookiesToSet)
}

Expand Down

0 comments on commit 600e5e1

Please sign in to comment.