@qwik.dev/core
Version:
An open source framework for building instant loading web apps at any scale, without the extra effort.
15 lines (10 loc) • 431 B
text/typescript
import { test, expect } from "@playwright/test";
test("homepage has title and links to flower page", async ({ page }) => {
await page.goto("/");
// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Qwik/);
// create a locator
const anchor = page.locator("a.mindblow");
// Expect an attribute "to be strictly equal" to the value.
await expect(anchor).toHaveAttribute("href", "/flower");
});