Files
Dominik Ferber 0910327c65 add next-16 tests (#195)
* add next-16 tests

* upgrade biome

* upgrade react in next-16

* tsconfig

* try with middleware.ts

* Revert "try with middleware.ts"

This reverts commit 894b6ed5ce.

* Revert "try adding executablePath"

This reverts commit a4991996fe.

* ensure x-middleware-rewrite

* test x-nextjs-cache

* rm playwright --ui

* adjust biome schema version

* disable getStaticPaths in pages router

* try chromium

* re-enable ci playwright workaround
2025-10-25 00:49:34 +03:00

20 lines
641 B
TypeScript

import { expect, test } 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();
});