tricoteuses-legifrance/tests/test.ts

6 lines
200 B
TypeScript

import { expect, test } from "@playwright/test"
test("index page has expected h1", async ({ page }) => {
await page.goto("/")
expect(await page.textContent("h1")).toBe("Welcome to SvelteKit")
})