SPB Git

Repository Public

playwright.config.ts 1.1 KB 17 lines typescript

1import { defineConfig, devices } from "@playwright/test";23/**4 * Projects run in order: the studio journey first (it publishes the sheets the other projects read), then the5 * public pages at phone and desktop sizes in Chromium and in WebKit with an iPhone profile.6 */7export default defineConfig({8  testDir: ".", fullyParallel: false, workers: 1, retries: 0, timeout: 120_000, reporter: [["list"]],9  use: { baseURL: process.env.E2E_BASE_URL ?? "http://localhost:8702", locale: "fr-CA", trace: "retain-on-failure" },10  projects: [11    { name: "studio", testMatch: /studio\.spec\.ts/, use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } } },12    { name: "studio-phone", testMatch: /studio-phone\.spec\.ts/, dependencies: ["studio"], use: { ...devices["Pixel 7"], viewport: { width: 390, height: 844 } } },13    { name: "public-chromium", testMatch: /public\.spec\.ts/, dependencies: ["studio"], use: { ...devices["Desktop Chrome"] } },14    { name: "public-iphone-webkit", testMatch: /public\.spec\.ts/, dependencies: ["studio"], use: { ...devices["iPhone 14"] } },15  ],16});17
Files main
Menu

Theme