Compware/end2end/tests/example.spec.ts

10 lines
298 B
TypeScript
Raw Normal View History

2024-12-06 14:45:14 +03:00
import { test, expect } from "@playwright/test";
test("homepage has title and links to intro page", async ({ page }) => {
2025-04-11 16:20:40 +03:00
await page.goto("http://localhost:3004/");
2024-12-06 14:45:14 +03:00
await expect(page).toHaveTitle("Welcome to Leptos");
await expect(page.locator("h1")).toHaveText("Welcome to Leptos!");
});