Fix specs

This regression was introduced in
db2c744e45.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-10-31 10:48:37 +01:00
parent db2c744e45
commit afe82a79b5
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -116,7 +116,7 @@ test("navigate line numbers", async ({ page }) => {
// file.
await page.getByRole("link", { name: "footnotes.md" }).click();
await expect(page.getByRole("button", { name: "Markdown" })).toHaveClass(
/secondary/,
/gray-white/,
);
});
@@ -242,17 +242,17 @@ test("markdown files", async ({ page }) => {
// Switch between raw and rendered modes.
{
await expect(page.getByRole("button", { name: "Markdown" })).toHaveClass(
/secondary/,
/gray-white/,
);
await expect(page.getByRole("button", { name: "Plain" })).not.toHaveClass(
/secondary/,
/gray-white/,
);
await page.getByRole("button", { name: "Plain" }).click();
await expect(
page.getByRole("button", { name: "Markdown" }),
).not.toHaveClass(/secondary/);
).not.toHaveClass(/gray-white/);
await expect(page.getByRole("button", { name: "Plain" })).toHaveClass(
/secondary/,
/gray-white/,
);
await expect(page.getByText("##### Table of Contents")).toBeVisible();
await page.getByRole("button", { name: "Markdown" }).click();
+2 -2
View File
@@ -59,11 +59,11 @@ test("change code font", async ({ page }) => {
await page.getByRole("button", { name: "Theme" }).first().click();
await page.getByText("System").click();
await expect(page.getByText("System")).toHaveClass(/secondary/);
await expect(page.getByText("System")).toHaveClass(/gray-white/);
await expect(page.locator("html")).toHaveAttribute("data-codefont", "system");
await page.getByText("JetBrains Mono").click();
await expect(page.getByText("JetBrains Mono")).toHaveClass(/secondary/);
await expect(page.getByText("JetBrains Mono")).toHaveClass(/gray-white/);
await expect(page.locator("html")).toHaveAttribute(
"data-codefont",
"jetbrains",