fix: reduce concurrency to avoid server connection issues
This commit is contained in:
@@ -1,22 +1,28 @@
|
|||||||
import { defineConfig, devices } from '@playwright/test';
|
import { defineConfig, devices } from '@playwright/test';
|
||||||
import { getEnvironmentConfig } from './shared/config/environments';
|
import { getEnvironmentConfig } from './shared/config/environments';
|
||||||
|
import { CustomReporter } from './shared/utils/reporting/CustomReporter';
|
||||||
|
|
||||||
const config = defineConfig({
|
const config = defineConfig({
|
||||||
testDir: './dev-audit',
|
testDir: './dev-audit',
|
||||||
fullyParallel: true,
|
fullyParallel: false,
|
||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: process.env.CI ? 2 : 0,
|
retries: process.env.CI ? 2 : 0,
|
||||||
workers: process.env.CI ? 1 : undefined,
|
workers: 1,
|
||||||
|
timeout: 30000,
|
||||||
reporter: [
|
reporter: [
|
||||||
['html', { outputFolder: 'test-framework/reports/html' }],
|
['html', { outputFolder: 'test-framework/reports/html', open: 'never' }],
|
||||||
['json', { outputFile: 'test-framework/reports/results.json' }],
|
['json', { outputFile: 'test-framework/reports/results.json' }],
|
||||||
|
['junit', { outputFile: 'test-framework/reports/results.xml' }],
|
||||||
['list']
|
['list']
|
||||||
],
|
],
|
||||||
use: {
|
use: {
|
||||||
baseURL: getEnvironmentConfig(process.env.TEST_ENV || 'development').baseURL,
|
baseURL: getEnvironmentConfig(process.env.TEST_ENV || 'development').baseURL,
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
screenshot: 'only-on-failure',
|
screenshot: 'only-on-failure',
|
||||||
video: 'retain-on-failure'
|
video: 'retain-on-failure',
|
||||||
|
launchOptions: {
|
||||||
|
args: ['--disable-dev-shm-usage', '--no-sandbox']
|
||||||
|
}
|
||||||
},
|
},
|
||||||
projects: [
|
projects: [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user