import { defineConfig, devices } from '@playwright/test'; /** * Fabrica's targets (.fabrica/tests.yaml; .agents/features/fabrica-release.md F9). * - `web`: the specs of `pnpm test:e2e`, against the BUILT bundle (build it first). * - `android`: the app on Fabrica's test phone, leased from its phone queue. Without the * environment Fabrica gives it, the test skips and says why: it never reaches for a phone itself. * `pnpm test:e2e` keeps its own config, so nothing here changes the suite of record. */ export default defineConfig({ testDir: '.', fullyParallel: false, workers: 1, retries: 0, reporter: [['list']], use: { trace: 'retain-on-failure' }, projects: [ { name: 'web', testMatch: /(shell|update|petal|planet)\.spec\.ts/, use: { ...devices['Desktop Chrome'] } }, { name: 'android', testMatch: /android\/.*\.android\.ts/ } ] });