goose/ui/goose2/playwright.config.ts
Jack Amadeo 482f1962c1
Move goose2 (#8516)
Signed-off-by: Jack Amadeo <jackamadeo@squareup.com>
Co-authored-by: block-open-source[bot] <201011344+block-open-source[bot]@users.noreply.github.com>
Co-authored-by: block-open-source[bot] <1159699+block-open-source[bot]@users.noreply.github.com>
Co-authored-by: Wes <wesbillman@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Toohey <contact@matttoohey.com>
Co-authored-by: tulsi <tulsi@block.xyz>
Co-authored-by: morgmart <98432065+morgmart@users.noreply.github.com>
Co-authored-by: Bradley Axen <baxen@squareup.com>
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Co-authored-by: Nahiyan Khan <nahiyan.khan@gmail.com>
Co-authored-by: Lifei Zhou <lifei@squareup.com>
2026-04-14 14:39:30 +00:00

58 lines
1.4 KiB
TypeScript

import { defineConfig, devices } from "@playwright/test";
const previewPort = 4173;
export default defineConfig({
testDir: "./tests/e2e",
timeout: 60_000,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: [
["list"],
["html", { open: "never", outputFolder: "playwright-report" }],
],
use: {
baseURL: `http://127.0.0.1:${previewPort}`,
screenshot: "only-on-failure",
trace: "on-first-retry",
video: "retain-on-failure",
},
projects: [
{
name: "smoke",
testMatch: ["**/smoke.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "personas",
testMatch: ["**/personas.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "skills",
testMatch: ["**/skills.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
{
name: "drafts",
testMatch: ["**/drafts.spec.ts"],
use: {
...devices["Desktop Chrome"],
},
},
],
webServer: {
// Opt-in reuse only. Reusing arbitrary local processes makes the suite
// flaky when another test run or dev server happens to be bound here.
command: `python3 -m http.server ${previewPort} -d dist`,
cwd: ".",
reuseExistingServer: process.env.PLAYWRIGHT_REUSE_SERVER === "1",
url: `http://127.0.0.1:${previewPort}`,
},
});