ultisuite-client/playwright.config.ts
R3D347HR4Y 9d0fb2766b
Some checks are pending
E2E / Playwright e2e (push) Waiting to run
Add Playwright for end-to-end testing and update configuration
- Added Playwright as a dependency for end-to-end testing, including necessary scripts in package.json.
- Created a Playwright configuration file to define test settings and browser options.
- Implemented a new GitHub Actions workflow for automated end-to-end testing on push and pull request events.
- Updated .gitignore to exclude Playwright test results and reports.
- Added initial end-to-end tests for mail functionalities, including composing, sending, and searching messages.
2026-05-22 17:02:21 +02:00

33 lines
778 B
TypeScript

import { defineConfig, devices } from "@playwright/test"
const PORT = Number(process.env.PLAYWRIGHT_PORT ?? 3099)
const baseURL = `http://127.0.0.1:${PORT}`
export default defineConfig({
testDir: "./e2e",
fullyParallel: false,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 1,
reporter: process.env.CI ? "github" : "list",
timeout: 60_000,
use: {
baseURL,
trace: "on-first-retry",
screenshot: "only-on-failure",
video: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
webServer: {
command: `HOSTNAME=127.0.0.1 PORT=${PORT} pnpm run e2e:server`,
url: baseURL,
reuseExistingServer: !process.env.CI,
timeout: 300_000,
},
})