mirror of
https://github.com/lissy93/networking-toolbox.git
synced 2026-11-20 21:23:10 +03:00
Co-authored-by: Alicia Sykes <1862727+lissy93@users.noreply.github.com>
44 lines
1021 B
TypeScript
44 lines
1021 B
TypeScript
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: './tests/e2e',
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? 1 : undefined,
|
|
timeout: 30000,
|
|
expect: {
|
|
timeout: 5000,
|
|
},
|
|
reporter: [
|
|
['github'],
|
|
['html', { open: 'never', outputFolder: 'playwright-report' }],
|
|
['junit', { outputFile: 'e2e-results.xml' }],
|
|
],
|
|
use: {
|
|
baseURL: 'http://localhost:4173',
|
|
trace: 'on-first-retry',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
{
|
|
name: 'firefox',
|
|
use: { ...devices['Desktop Firefox'] },
|
|
},
|
|
// i disabled webkit cos of missing system deps on CI
|
|
// {
|
|
// name: 'webkit',
|
|
// use: { ...devices['Desktop Safari'] },
|
|
// },
|
|
],
|
|
webServer: {
|
|
command: 'npm run build && npm run preview',
|
|
port: 4173,
|
|
timeout: 300000,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
});
|