Files
bitvid/examples/reproducers/playwright.config.ts
T
google-labs-jules[bot]andPR0M3TH3AN 0b518cdd65 Add minimal reproducers for Moderation UI and Popover bugs
- Added reproducer for Moderation UI visibility bug in `examples/reproducers/issue-moderation-visibility`.
- Added reproducer for Popover viewport bug in `examples/reproducers/issue-popover-viewport`.
- Added `examples/reproducers/playwright.config.ts` to support running these reproducers with a local web server serving the repo root.
- Verified that both reproducers successfully fail as expected in the current environment.

Co-authored-by: PR0M3TH3AN <[email protected]>
2026-01-28 12:45:18 +00:00

25 lines
838 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-repro",
timeout: 60_000,
reporter: [["list"], ["html", { open: "never" }]],
use: {
baseURL: BASE_URL,
viewport: { width: 1280, height: 720 },
ignoreHTTPSErrors: true,
},
webServer: {
// Config is in examples/reproducers, so cwd is there. We need to serve the repo root.
command: `npx http-server ../.. -p ${PORT} -a ${HOST} -c-1 --silent`,
url: `${BASE_URL}/docs/kitchen-sink.html`,
reuseExistingServer: !process.env.CI,
timeout: 120_000,
},
});