Files
bitvid/examples/reproducers/issue-moderation-ui/playwright.config.ts
T
google-labs-jules[bot]andPR0M3TH3AN ebc27423cc Add minimal reproducer for moderation UI visibility bug
- Creates `examples/reproducers/issue-moderation-ui/` with a standalone Playwright script.
- Includes `repro.spec.ts` which reproduces the "Show anyway" button visibility failure.
- Adds `playwright.config.ts` for standalone execution of the reproducer.
- Documents running instructions in `README.md`.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-27 12:14:15 +00:00

30 lines
786 B
TypeScript

import { defineConfig } from "@playwright/test";
const HOST = process.env.PLAYWRIGHT_HOST ?? "127.0.0.1";
const PORT = Number.parseInt(process.env.PLAYWRIGHT_PORT ?? "4173", 10);
const BASE_URL = process.env.PLAYWRIGHT_BASE_URL ?? `http://${HOST}:${PORT}`;
export default defineConfig({
testDir: ".",
outputDir: "../../../artifacts/test-results",
timeout: 60_000,
reporter: [["list"]],
use: {
baseURL: BASE_URL,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
},
projects: [
{
name: "repro",
testMatch: "**/*.spec.ts",
},
],
webServer: {
command: `npx http-server . -p ${PORT} -a ${HOST} -c-1 --silent`,
url: `${BASE_URL}/docs/kitchen-sink.html`,
reuseExistingServer: true,
timeout: 120_000,
},
});