2026-05-08 13:35:00 +09:00
|
|
|
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,
|
2026-05-20 14:26:08 +09:00
|
|
|
workers: process.env.CI ? 2 : undefined,
|
2026-05-08 13:35:00 +09:00
|
|
|
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: {
|
2026-05-20 14:26:08 +09:00
|
|
|
command: "bun run build && bun --bun next start",
|
2026-05-08 13:35:00 +09:00
|
|
|
url: "http://127.0.0.1:3000",
|
|
|
|
|
reuseExistingServer: !process.env.CI,
|
|
|
|
|
timeout: 180000,
|
|
|
|
|
},
|
|
|
|
|
})
|