@7x7cl/qwik
Version:
An Open-Source sub-framework designed with a focus on server-side-rendering, lazy-loading, and styling/animation.
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');
});