mirror of
https://github.com/kristoferssolo/kristofersxyz-rs.git
synced 2026-02-04 06:42:06 +00:00
Initial commit
This commit is contained in:
15
end2end/tests/example.spec.ts
Normal file
15
end2end/tests/example.spec.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
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!");
|
||||
|
||||
await expect(page.getByRole('button')).toHaveText("Click Me: 0");
|
||||
|
||||
await page.click('button');
|
||||
|
||||
await expect(page.getByRole('button')).toHaveText("Click Me: 1");
|
||||
});
|
||||
Reference in New Issue
Block a user