import { defineConfig, devices, PlaywrightTestConfig } from "@playwright/test"; const playwrightConfig: PlaywrightTestConfig = defineConfig({ fullyParallel: true, projects: [ { name: "desktop-chromium-1920", use: { ...devices["Desktop Chrome"], viewport: { height: 1080, width: 1920 } }, }, { name: "desktop-firefox-1920", use: { ...devices["Desktop Firefox"], viewport: { height: 1080, width: 1920 } }, }, // { // name: "tablet-chromium-portrait", // use: { ...devices["Galaxy Tab S9"] }, // }, // { // name: "tablet-chromium-landscape", // use: { ...devices["Galaxy Tab S9 landscape"] }, // }, // { // name: "mobile-chromium-portrait", // use: { ...devices["Pixel 7"] }, // }, // { // name: "mobile-chromium-landscape", // use: { ...devices["Pixel 7 landscape"] }, // }, ], reporter: "list", retries: 1, testDir: "../tests", timeout: 10_000, use: { baseURL: "https://haikuatelier.gcch.local", clientCertificates: [ { origin: "https://haikuatelier.gcch.local", certPath: "../containers/data/certs/_wildcard.gcch.local.pem", keyPath: "../containers/data/certs/_wildcard.gcch.local-key.pem", }, ], ignoreHTTPSErrors: true, trace: "retry-with-trace", }, workers: "50%", }); export default playwrightConfig;