From 181fcc15af0d6efefe983df32e98268b2041b0c1 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Fri, 17 Nov 2023 11:54:33 +0100 Subject: [PATCH] Fix e2e change theme test --- tests/e2e/theme.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/theme.spec.ts b/tests/e2e/theme.spec.ts index e95051faf..8ce36ff48 100644 --- a/tests/e2e/theme.spec.ts +++ b/tests/e2e/theme.spec.ts @@ -38,10 +38,10 @@ test("change theme", async ({ page }) => { await expect(page.locator("html")).toHaveAttribute("data-theme", "light"); await expect(page.locator("body")).toHaveCSS( "background-color", - "rgb(245, 245, 255)", + "rgb(250, 250, 255)", ); // Source highlighting reacts to theme change. - await expect(page.getByText("() {")).toHaveCSS("color", "rgb(20, 21, 26)"); + await expect(page.getByText("() {")).toHaveCSS("color", "rgb(35, 37, 99)"); await page.getByRole("button", { name: "Dark Mode" }).click(); await expect(page.locator("html")).toHaveAttribute("data-theme", "dark");