tududi/e2e/playwright.config.ts
Antonis 4fa2aa91bf
Fix E2E test breakage (#380)
* Add logging placeholder functions, fix notes.js uids

* Add UIDs to inbox items. Includes migration.

* Add UID to users.

* Add project UIDs usage.

* Add script that runs specific E2E test(s)

* Only run Chromium E2E tests by default.

* Fix breaking E2E tests

* fixup! Fix breaking E2E tests

---------

Co-authored-by: antanst <>
Co-authored-by: Chris Veleris <chrisveleris@gmail.com>
2025-10-05 16:04:46 +03:00

28 lines
844 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
import dotenv from 'dotenv';
dotenv.config({ path: process.cwd() + '/.env' });
const baseURL = process.env.APP_URL || 'http://localhost:8080';
const slowMoMs = Number(process.env.E2E_SLOWMO || '0') || 0;
export default defineConfig({
testDir: './tests',
timeout: 60_000,
expect: { timeout: 10_000 },
fullyParallel: true,
reporter: [['list']],
use: {
baseURL,
trace: 'on-first-retry',
video: 'retain-on-failure',
screenshot: 'only-on-failure',
viewport: { width: 1280, height: 800 },
launchOptions: { slowMo: slowMoMs },
},
projects: [
{ name: 'Chromium', use: { ...devices['Desktop Chrome'] } },
// { name: 'Firefox', use: { ...devices['Desktop Firefox'] } },
// { name: 'WebKit', use: { ...devices['Desktop Safari'] } },
],
});