65 lines
1.9 KiB
TypeScript
65 lines
1.9 KiB
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
fullyParallel: true,
|
|
reporter: "list",
|
|
retries: 1,
|
|
testDir: "../tests",
|
|
timeout: 10_000,
|
|
workers: "100%",
|
|
use: {
|
|
/* Base URL to use in actions like `await page.goto('/')`. */
|
|
baseURL: "https://haikuatelier.gcch.local",
|
|
trace: "retry-with-trace",
|
|
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,
|
|
},
|
|
projects: [
|
|
{
|
|
name: "desktop-chromium-1920",
|
|
use: { ...devices["Desktop Chrome"], viewport: { width: 1920, height: 1080 } },
|
|
},
|
|
// {
|
|
// name: "desktop-chromium-1536",
|
|
// use: { ...devices["Desktop Chrome"], viewport: { width: 1536, height: 864 } },
|
|
// },
|
|
// {
|
|
// name: "desktop-chromium-1366",
|
|
// use: { ...devices["Desktop Chrome"], viewport: { width: 1366, height: 768 } },
|
|
// },
|
|
{
|
|
name: "desktop-firefox-1920",
|
|
use: { ...devices["Desktop Firefox"], viewport: { width: 1920, height: 1080 } },
|
|
},
|
|
// {
|
|
// name: "desktop-firefox-1536",
|
|
// use: { ...devices["Desktop Firefox"], viewport: { width: 1536, height: 864 } },
|
|
// },
|
|
// {
|
|
// name: "desktop-firefox-1366",
|
|
// use: { ...devices["Desktop Firefox"], viewport: { width: 1366, height: 768 } },
|
|
// },
|
|
// {
|
|
// 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"] },
|
|
// },
|
|
],
|
|
});
|