Skip to content

Commit

Permalink
more test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jun 27, 2024
1 parent 6d7bc4e commit df68cef
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/js/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ test.describe("top nav bar", () => {
const header = page.locator("header.mobile-header");
await expect(header).toHaveScreenshot();
});

test("uses custom icons on mobile dark mode cycle", async ({ page }) => {
await setMobile(page);
await page.goto("sphinx_guide/lists.html");
const header = page.locator("header.mobile-header");
await expect(header).toHaveScreenshot();
await click(page, "div.theme-toggle-header button");
await expect(header).toHaveScreenshot();
await click(page, "div.theme-toggle-header button");
await expect(header).toHaveScreenshot();
await click(page, "div.theme-toggle-header button");
await expect(header).toHaveScreenshot();
});
});

test("right side bar is not broken by our page layout", async ({ page }) => {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit df68cef

Please sign in to comment.