SPB Git

Repository Public

playwright.config.ts 916 B 15 lines typescript

1import { defineConfig, devices } from '@playwright/test';23// Runs against a running stack (scripts/dev-stack.sh, or SPD_E2E_BASE for another one). Passkeys are exercised with4// Chromium's virtual authenticator, so the signed-in projects are Chromium (desktop and phone viewport); the public5// pages (share links, deposit portals) also run on WebKit with an iPhone profile.6export default defineConfig({7  testDir: '.', timeout: 120_000, workers: 1, reporter: 'list', outputDir: '../../test-results', expect: { timeout: 15_000 },8  use: { baseURL: process.env.SPD_E2E_BASE ?? 'http://localhost:5183', trace: 'retain-on-failure' },9  projects: [10    { name: 'desktop', use: { ...devices['Desktop Chrome'], viewport: { width: 1360, height: 860 } } },11    { name: 'mobile', use: { ...devices['Pixel 7'] } },12    { name: 'iphone-public', use: { ...devices['iPhone 15'] }, testMatch: /public\..*\.spec\.ts/ },13  ],14});15
Files main
Menu

Theme