Add test for page
This commit is contained in:
parent
20920586e0
commit
25ef50f358
10
tests/page.test.ts
Normal file
10
tests/page.test.ts
Normal 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');
|
||||||
|
});
|
Reference in New Issue
Block a user