Blog/end2end/tests/example.spec.ts
2024-01-13 21:57:30 +01:00

9 lines
298 B
TypeScript

import { test, expect } from "@playwright/test";
test("homepage has title and links to intro page", async ({ page }) => {
await page.goto("http://localhost:3000/");
await expect(page).toHaveTitle("Welcome to Leptos");
await expect(page.locator("h1")).toHaveText("Welcome to Leptos!");
});