Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix e2e change theme test
Sebastian Martinez committed 2 years ago
commit 181fcc15af0d6efefe983df32e98268b2041b0c1
parent 0b331ba515c7e2eceadc7c0fd9c5cc506223e6c2
1 file changed +2 -2
modified 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");