SPB Git

Repository Public

playwright.config.ts 2.6 KB 68 lines typescript

1/**2 * =============================================================================3 *                  SP BOUCHER | INFRASTRUCTURE & AUTOMATION4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : MacLustr Identity8 * File             : apps/web/playwright.config.ts9 * Module           : web10 * Repository       : https://git.spboucher.ai/maclustr-identity11 * Project Website  : https://identity.spboucher.ai12 * Created          : 2026-12-0113 * Last Modified    : 2026-12-0114 *15 * Author           : Simon-Pierre Boucher16 * Position         : Professor of Finance17 * Institution      : Université du Québec en Outaouais (UQO)18 * Organization     : SP Boucher19 * Website          : https://spboucher.ai20 * Git              : https://git.spboucher.ai21 *22 * Preferred Contact: admin@spboucher.ai23 * Technical Contact: dev@spboucher.ai24 * Security/Admin   : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License          : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142import { defineConfig } from "@playwright/test";4344/* Essais de bout en bout, sans fenêtre visible, contre la pile locale isolée (e2e/stack.sh) qui sert apps/web/dist avec la vraie CSP. */45const port = process.env.MLID_E2E_PORT ?? "8880";46const chromium = {47  browserName: "chromium" as const,48  headless: true,49  permissions: ["camera"],50  launchOptions: { args: ["--use-fake-ui-for-media-stream", "--use-fake-device-for-media-stream"] },51};5253export default defineConfig({54  testDir: "e2e",55  globalSetup: "./e2e/global-setup.ts",56  fullyParallel: false,57  workers: 1,58  timeout: 90_000,59  expect: { timeout: 15_000 },60  reporter: [["list"]],61  outputDir: "test-results",62  use: { baseURL: `http://localhost:${port}`, locale: "fr-CA", trace: "retain-on-failure" },63  projects: [64    { name: "mobile", use: { ...chromium, viewport: { width: 390, height: 844 }, deviceScaleFactor: 2, isMobile: true, hasTouch: true } },65    { name: "desktop", use: { ...chromium, viewport: { width: 1440, height: 900 } } },66  ],67});68
Files main
Menu

Theme