openreplay/frontend/playwright.config.ts
Andrey Babushkin 09c98b5bde
E2e tests frontend (#3471)
* add playwright

* add e2e test

* add test

* add e2e test

* add e2e tests
2025-06-03 12:09:10 +02:00

37 lines
No EOL
848 B
TypeScript

/* eslint-disable import/no-extraneous-dependencies */
import 'dotenv/config';
import { defineConfig, devices } from '@playwright/test';
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './tests/playwright',
fullyParallel: true,
retries: 0,
workers: 1,
reporter: 'list',
use: {
baseURL: 'http://localhost:3333',
trace: 'on-first-retry',
},
/* Configure projects for major browsers */
projects: [
{ name: 'setup', testMatch: /.*\.setup\.ts/ },
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
dependencies: ['setup'],
},
],
/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn start',
url: 'http://localhost:3333',
timeout: 120 * 1000,
reuseExistingServer: true,
},
});