mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 22:39:18 +01:00
* chore(e2e): updates testing to use playwright * chore: updates workflows * fixes spaces * fixes space again * fixes int test to add docker * chore: ignore e2e tests for vite * updates screenshots for linux * updates screenshots again * chore: uses docker compose for e2e * adds PWTEST_SKIP_TEST_OUTPUT * add ci * updates screenshots again * updates with css * adds more tests * updates tests
21 lines
594 B
TypeScript
21 lines
594 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.beforeEach(async ({ page }) => {
|
|
await page.goto("http://dozzle:8080/");
|
|
});
|
|
|
|
test.describe("default", () => {
|
|
test("homepage", async ({ page }) => {
|
|
await page.addStyleTag({ content: `[data-ci-skip] { visibility: hidden; }` });
|
|
await expect(page).toHaveScreenshot({});
|
|
});
|
|
});
|
|
|
|
test.describe("dark", () => {
|
|
test.use({ colorScheme: "dark" });
|
|
test("homepage", async ({ page }) => {
|
|
await page.addStyleTag({ content: `[data-ci-skip] { visibility: hidden; }` });
|
|
await expect(page).toHaveScreenshot({});
|
|
});
|
|
});
|