9a9d9bd5a1
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
36 lines
790 B
TypeScript
36 lines
790 B
TypeScript
import { defineConfig, devices } from "@playwright/test"
|
|
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
reporter: process.env.CI ? [["github"], ["list"]] : "list",
|
|
use: {
|
|
baseURL: "http://127.0.0.1:3000",
|
|
trace: "on-first-retry",
|
|
headless: true,
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
headless: true,
|
|
},
|
|
},
|
|
],
|
|
|
|
webServer: {
|
|
command: "bun --bun next build && bun --bun next start",
|
|
url: "http://127.0.0.1:3000",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 180000,
|
|
},
|
|
})
|