35 lines
770 B
JavaScript
35 lines
770 B
JavaScript
|
|
/**
|
||
|
|
* Playwright Configuration for Railtrack Pro
|
||
|
|
* E2E testing with video recording
|
||
|
|
*/
|
||
|
|
const { defineConfig, devices } = require('@playwright/test');
|
||
|
|
|
||
|
|
module.exports = defineConfig({
|
||
|
|
testDir: './test/e2e',
|
||
|
|
fullyParallel: true,
|
||
|
|
forbidOnly: !!process.env.CI,
|
||
|
|
retries: process.env.CI ? 2 : 0,
|
||
|
|
workers: process.env.CI ? 1 : undefined,
|
||
|
|
reporter: 'html',
|
||
|
|
use: {
|
||
|
|
baseURL: 'http://localhost:8080',
|
||
|
|
trace: 'on-first-retry',
|
||
|
|
screenshot: 'only-on-failure',
|
||
|
|
video: 'on-first-retry'
|
||
|
|
},
|
||
|
|
projects: [
|
||
|
|
{
|
||
|
|
name: 'chromium',
|
||
|
|
use: { ...devices['Desktop Chrome'] }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'firefox',
|
||
|
|
use: { ...devices['Desktop Firefox'] }
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'webkit',
|
||
|
|
use: { ...devices['Desktop Safari'] }
|
||
|
|
}
|
||
|
|
]
|
||
|
|
});
|