ConceptPortal-public/rsconcept/frontend/playwright.config.ts
Ivan 442f86f99a
Some checks are pending
Frontend CI / build (22.x) (push) Waiting to run
T: Add logout test and improve accessability
2025-03-06 22:26:44 +03:00

33 lines
688 B
TypeScript

import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: 'tests',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: 'list',
fullyParallel: true,
projects: [
{
name: 'Desktop Chrome',
use: { ...devices['Desktop Chrome'] }
},
{
name: 'Desktop Firefox',
use: { ...devices['Desktop Firefox'] }
},
{
name: 'Desktop Safari',
use: { ...devices['Desktop Safari'] }
}
],
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry'
},
webServer: {
command: 'npm run dev',
port: 3000,
reuseExistingServer: !process.env.CI
}
});