From 828a552c3c445d02a9ce8c7ec7af2d7f96283a7e Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Thu, 27 Jun 2024 16:23:52 -0400 Subject: [PATCH] try adding a dark mode screen shot test --- tests/js/tests.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/js/tests.js b/tests/js/tests.js index 0ed07f10..1ea90cf8 100644 --- a/tests/js/tests.js +++ b/tests/js/tests.js @@ -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");