mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
* Close page to stop e2e test on teardown * Configure Playwright to retain videos on failure and simplify teardown - Enable video recording that only saves on test failures - Remove complex cleanup logic from global teardown - Streamline server shutdown to not block teardown process * change build.js to build.mjs which fixes ES module load error * speed up --------- Co-authored-by: Brian Pierce <brian@cline.bot>
32 lines
661 B
TypeScript
32 lines
661 B
TypeScript
import { defineConfig } from "@playwright/test"
|
|
|
|
const isCI = !!process?.env?.CI
|
|
const isWindow = process?.platform?.startsWith("win")
|
|
|
|
export default defineConfig({
|
|
workers: 1,
|
|
retries: 1,
|
|
forbidOnly: isCI,
|
|
testDir: "src/test/e2e",
|
|
testMatch: /.*\.test\.ts/,
|
|
timeout: isCI || isWindow ? 40000 : 20000,
|
|
expect: {
|
|
timeout: isCI || isWindow ? 5000 : 2000,
|
|
},
|
|
fullyParallel: true,
|
|
reporter: isCI ? [["github"], ["list"]] : [["list"]],
|
|
use: {
|
|
video: "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "setup test environment",
|
|
testMatch: /global\.setup\.ts/,
|
|
},
|
|
{
|
|
name: "e2e tests",
|
|
dependencies: ["setup test environment"],
|
|
},
|
|
],
|
|
})
|