mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 18:50:30 +08:00
Fix e2e change theme test
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user