mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
ba4eec7b23
* remove @pyra/eslint-config * wip * wip * convert shirt-shop-api * convert shirt-shop * convert snippets * convert next-13 * convert next-14 * convert next-15 * eslint configs * upgrade prettier * use eslint v9 * run prettier * resolve type-check * adjust eslint * drop Next.js v13 * fix next-14 Avoid accidentally using implicitly installed eslint v8 * update lockfile * rm @eslint/eslintrc * add @next/eslint-plugin-next * biome * biome fixes * wip * apply formatting * tabs * rm prettier * spaces * fix svelte * update lockfile * single quotes * format all * rm eslint-disable comments * upgrade playwright * upgrade publint * upgrade playwright ci workflow * try chromium headless * try adding executablePath
20 lines
641 B
TypeScript
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();
|
|
});
|