SPB Git

Repository Public

playwright.config.ts 1.1 KB 16 lines typescript

1import { defineConfig, devices } from "@playwright/test";23// End-to-end tests run against a real instance (local production build or https://tv.spboucher.ai):4//   SPTV_URL=… SPTV_PASSWORD=… node_modules/.bin/playwright test5// Playback is only asserted in Firefox and WebKit: Playwright's Chromium build has no H.264/AAC decoder.6export default defineConfig({7  testDir: "tests/e2e", outputDir: "/tmp/sptv-e2e-results", timeout: 240_000, workers: 1, retries: 0, reporter: [["list"]],8  use: { baseURL: process.env.SPTV_URL ?? "http://localhost:8670", locale: "fr-CA", timezoneId: "America/Toronto", trace: "off" },9  projects: [10    { name: "chromium-desktop", use: { ...devices["Desktop Chrome"], viewport: { width: 1440, height: 900 } } },11    { name: "firefox-desktop", use: { ...devices["Desktop Firefox"], viewport: { width: 1440, height: 900 }, launchOptions: { firefoxUserPrefs: { "media.autoplay.default": 0, "media.autoplay.blocking_policy": 0 } } } },12    { name: "webkit-iphone", use: { ...devices["iPhone 15"] } },13    { name: "webkit-ipad", use: { ...devices["iPad Pro 11 landscape"] } },14  ],15});16
Files main
Menu

Theme