Add more testing stuff

This commit is contained in:
Schluffe
2026-09-26 14:12:35 +02:00
parent cb6946c9c7
commit e47df08232
13 changed files with 333 additions and 125 deletions
+20
View File
@@ -0,0 +1,20 @@
import { expect, test } from "@playwright/test";
test("has title", async ({ page }) => {
await page.goto("https://playwright.dev/");
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});
test("get started link", async ({ page }) => {
await page.goto("https://playwright.dev/");
// Click the get started link.
await page.getByRole("link", { name: "Get started" }).click();
// Expects page to have a heading with the name of Installation.
await expect(
page.getByRole("heading", { name: "Installation" }),
).toBeVisible();
});