From 6fd4c8f5271d712a8f3517ec07e133cac273da40 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Sun, 19 Nov 2023 15:20:45 +0000 Subject: [PATCH] update e2e test --- __test__/e2e/theming.spec.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/__test__/e2e/theming.spec.ts b/__test__/e2e/theming.spec.ts index 151a1f4f..5d9145a2 100644 --- a/__test__/e2e/theming.spec.ts +++ b/__test__/e2e/theming.spec.ts @@ -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)