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

chore: adds more e2e tests (#2266)

This commit is contained in:
Amir Raminfar
2023-06-20 15:36:33 -07:00
committed by GitHub
parent 50f3c0b7a4
commit 8b3ddcfca7
2 changed files with 39 additions and 0 deletions

15
e2e/remote.spec.ts Normal file
View File

@@ -0,0 +1,15 @@
import { test, expect } from "@playwright/test";
test.beforeEach(async ({ page }) => {
await page.goto("http://remote:8080/");
});
test("has right title", async ({ page }) => {
await expect(page).toHaveTitle(/.* - Dozzle/);
});
test("select running container", async ({ page }) => {
await page.locator("ul.menu-list").getByRole("link", { name: "dozzle" }).click();
await expect(page).toHaveURL(/\/container/);
await expect(page.getByText("Accepting connections")).toBeVisible();
});