1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-26 23:21:41 +01:00

chore(e2e): updates testing to use playwright (#2181)

* 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
This commit is contained in:
Amir Raminfar
2023-05-22 11:33:25 -07:00
committed by GitHub
parent 0d3bd7246a
commit b2844469d6
46 changed files with 1259 additions and 1746 deletions

13
e2e/custom.spec.ts Normal file
View File

@@ -0,0 +1,13 @@
import { test, expect } from "@playwright/test";
test.beforeEach(async ({ page }) => {
await page.goto("http://custom_base:8080/foobarbase");
});
test("has right title", async ({ page }) => {
await expect(page).toHaveTitle(/.* - Dozzle/);
});
test("url should have custom base", async ({ page }) => {
await expect(page).toHaveURL(/foobarbase/);
});