quine-RideRN/cypress.config.ts
Philip Peterson 3a9944489f Split auction scenarios into one Cypress spec each
Scenario steps move to cypress/scenarios/ and each gets a thin spec in
cypress/e2e/, so the same steps can back more than one spec. Shared
phones move to cypress/support/phones.ts, and "Run all specs" is
enabled in the Cypress UI for playing every scenario back to back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 06:39:14 -08:00

23 lines
1,004 B
TypeScript

// Multi-phone e2e tests. `npm run e2e` starts the dispatch server and the web dev server,
// then runs every scenario headlessly; `npm run e2e:open` does the same in the Cypress UI.
import { defineConfig } from 'cypress';
export default defineConfig({
// Readable from specs via Cypress.expose().
expose: { dispatchUrl: 'http://localhost:8787' },
e2e: {
// A dedicated Expo dev server (npm run sim:web), which also serves the simulator page
// (public/sim.html). It's kept off 8081 so it never collides with your everyday dev server.
baseUrl: 'http://localhost:8090',
// Wide enough to show several phones side by side.
viewportWidth: 1900,
viewportHeight: 900,
// Every phone loads the full dev bundle; the first run also waits on Metro compiling it.
pageLoadTimeout: 120_000,
defaultCommandTimeout: 10_000,
video: false,
// Adds "Run all specs" to `npm run e2e:open`, to play every scenario back to back.
experimentalRunAllSpecs: true,
},
});