site/tests/test.ts

7 lines
222 B
TypeScript
Raw Permalink Normal View History

import { expect, test } from '@playwright/test'
2024-04-02 17:35:26 -07:00
test('index page has expected h1', async ({ page }) => {
await page.goto('/')
await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible()
})