Add test for page
All checks were successful
/ Misc Linters (pull_request) Successful in 27s
/ Build App (pull_request) Successful in 1m49s

This commit is contained in:
Valentin Brandl 2024-08-18 15:46:46 +02:00
parent 20920586e0
commit 25ef50f358
Signed by: vbrandl
GPG Key ID: CAD4DA1A789125F9

10
tests/page.test.ts Normal file
View File

@ -0,0 +1,10 @@
import { expect, test } from '@playwright/test';
test('contains header text', async ({ playwright }) => {
const context = await playwright.request.newContext();
const response = await context.get('');
await expect(response.status()).toBe(200);
const body = (await response.body()).toString();
await expect(body).toContain('Gabi und Hannes Fotochallenge');
});