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 |
@@ -37,21 +37,11 @@ export default defineConfig({
|
|||||||
use: { ...devices["Desktop Chrome"] },
|
use: { ...devices["Desktop Chrome"] },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
name: "webkit",
|
|
||||||
use: { ...devices["Desktop Safari"] },
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "Mobile Chrome",
|
name: "Mobile Chrome",
|
||||||
use: { ...devices["Pixel 5"] },
|
use: { ...devices["Pixel 5"] },
|
||||||
testMatch: "**/visual.spec.ts",
|
testMatch: "**/visual.spec.ts",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Mobile Safari",
|
|
||||||
use: { ...devices["iPhone 12"] },
|
|
||||||
testMatch: "**/visual.spec.ts",
|
|
||||||
},
|
|
||||||
|
|
||||||
/* Test against branded browsers. */
|
/* Test against branded browsers. */
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user