Skip to content

Commit

Permalink
try adding a dark mode screen shot test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jun 27, 2024
1 parent 05b5486 commit 828a552
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ test.describe("api docs", () => {
await expect(content).toHaveScreenshot();
});

test("class page dark mode", async ({ page }) => {
await click(page, "div.theme-toggle-container i");
await page.goto("stubs/api_example.Electron.html");
const content = page.locator("div.article-container");
await expect(content).toHaveScreenshot();
});

test("function page", async ({ page }) => {
await page.goto("stubs/api_example.my_function1.html");
const content = page.locator("div.article-container");
Expand Down

0 comments on commit 828a552

Please sign in to comment.