tiny-intranet/end2end/tests/example.spec.ts

10 lines
291 B
TypeScript
Raw Normal View History

2024-12-21 19:34:59 +00:00
import { test, expect } from "@playwright/test";
test("homepage has title and heading text", async ({ page }) => {
await page.goto("http://localhost:3000/");
await expect(page).toHaveTitle("Welcome to Leptos");
await expect(page.locator("h1")).toHaveText("Welcome to Leptos!");
});