This repository has been archived on 2024-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
fotochallenge/tests/page.test.ts
Valentin Brandl 25ef50f358
All checks were successful
/ Misc Linters (pull_request) Successful in 27s
/ Build App (pull_request) Successful in 1m49s
Add test for page
2024-08-18 15:46:46 +02:00

11 lines
367 B
TypeScript

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');
});