mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
chore: adds visual comparison for aside menu only (#2319)
* chore: adds visual comparison for aside menu only * adds missing files
This commit is contained in:
18
e2e/visual.spec.ts
Normal file
18
e2e/visual.spec.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { test, expect } from "@playwright/test";
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.goto("http://dozzle:8080/");
|
||||
});
|
||||
|
||||
test.describe("default", () => {
|
||||
test("homepage", async ({ page }) => {
|
||||
await expect(page.locator("aside")).toHaveScreenshot({});
|
||||
});
|
||||
});
|
||||
|
||||
test.describe("dark", () => {
|
||||
test.use({ colorScheme: "dark" });
|
||||
test("homepage", async ({ page }) => {
|
||||
await expect(page.locator("aside")).toHaveScreenshot({});
|
||||
});
|
||||
});
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
BIN
e2e/visual.spec.ts-snapshots/dark-homepage-1-chromium-linux.png
Normal file
BIN
e2e/visual.spec.ts-snapshots/dark-homepage-1-chromium-linux.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user