Skip to content

Commit

Permalink
update e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ashharrison90 committed Nov 19, 2023
1 parent 85b629b commit 6fd4c8f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions __test__/e2e/theming.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ test.describe('theming', () => {
}) => {
const mainPage = page.locator('[role="main"]')
await expect(mainPage).toBeVisible()
await page.evaluate(
() => document.querySelector('[role="main"]')?.scrollTo(0, 100),
)
await page.evaluate(() => window.scrollTo(0, 100))
expect(await page.isChecked(themeToggleSelector)).toEqual(false)

await page.check(themeToggleSelector)
Expand Down

0 comments on commit 6fd4c8f

Please sign in to comment.