personal-website-sveltekit/tests/home.test.ts

7 lines
210 B
TypeScript
Raw Normal View History

import { expect, test } from '@playwright/test';
test('index page has expected h1', async ({ page }) => {
await page.goto('/');
expect(await page.textContent('h1')).toBe("Hello! I'm Bradley Shellnut.");
});