Files
orca/tests/playwright.config.ts
T
Neil 9bd6272fdf refactor(tooling): organize build, CI, and test owners (#38130)
* refactor(tooling): organize test runtime and maintenance owners

* test(tooling): preserve relocated runtime fixture dependency edges

* refactor(tooling): preserve xterm routing owner checks

* ci(tooling): include routing owner in sparse checkout

* test(tooling): preserve copied workflow dependency closures

* fix(tooling): normalize hashed JSON assets in release parity

* fix(tooling): distinguish asset aliases from literal references

* fix(tooling): frame normalized asset reference payloads

* fix(tooling): normalize decoded JSON asset references

* refactor(tooling): organize build, CI and release owners

* fix(tooling): align moved generator and workflow path contracts

* fix(tooling): update generated plugin bundle owner banners

* test(tooling): create relocated mobile verifier fixture directories

* test(tooling): copy headless detector dependency closure

* test(tooling): align native batch policy fixtures with owner path

* fix(tooling): link moved reliability command to historical evidence

* fix(tooling): preserve nested sandbox owners and canonical guide source

* fix(tooling): target release version owners in checkout fixture
2026-11-04 21:08:19 -08:00

47 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from '@stablyai/playwright-test'
import { resolveBuildSourceCommit } from '../config/scripts/build-identity/build-source-commit.mjs'
// Run ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e to build/run; SKIP_BUILD=1 reuses the current E2E build.
// Headful pointer-capture runs require an isolated display. Global setup/teardown own the seeded repo; fixtures launch Electron.
export default defineConfig({
testDir: './e2e',
// Keep checkout provenance without fetching the PR base during test setup.
captureGitInfo: { commit: false, diff: false },
metadata: { sourceCommit: resolveBuildSourceCommit() },
globalSetup: './e2e/global-setup.ts',
globalTeardown: './e2e/global-teardown.ts',
// Budget startup plus assertions: fresh app/profile launches can exceed 60s late in CI.
timeout: 120_000,
expect: { timeout: 10_000 },
// Isolated hidden apps can fan out; visible-window pointer specs serialize themselves.
fullyParallel: true,
// CI scales by shards: two real Electron trees per VM contended on Xvfb/git and caused false failures.
workers: process.env.CI ? 1 : undefined,
forbidOnly: !!process.env.CI,
retries: 0,
reporter: 'list',
use: {
// Disable retries so CI retains the first failure’s reliable trace.
trace: 'retain-on-failure',
screenshot: 'only-on-failure'
},
projects: [
{
name: 'electron-headless',
testMatch: '**/*.spec.ts',
grepInvert: /@headful/,
metadata: {
orcaHeadful: false
}
},
{
name: 'electron-headful',
testMatch: '**/*.spec.ts',
grep: /@headful/,
metadata: {
orcaHeadful: true
}
}
]
})