Files
Dominik Ferber db89f0dfb1 Init
2024-12-12 13:01:06 +02:00

20 lines
641 B
TypeScript

import { test, expect } from '@playwright/test';
import { port } from '../port';
test('displays the flag value', async ({ page }) => {
await page.goto(`http://localhost:${port}/`);
await expect(
page.getByText('Example App Router Flag Value: true'),
).toBeVisible();
});
test('can read request headers', async ({ page }) => {
await page.goto(`http://localhost:${port}/`);
await expect(page.getByText(`Host: localhost:${port}`)).toBeVisible();
});
test('can read cookies', async ({ page }) => {
await page.goto(`http://localhost:${port}/`);
await expect(page.getByText(`Cookie: example-cookie-value`)).toBeVisible();
});