From 767fa32c26e76781de02dbacaeec644aef6d37a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Fri, 6 Mar 2026 18:38:15 +0800 Subject: [PATCH] fix: reduce concurrency to avoid server connection issues --- test-framework/playwright.config.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test-framework/playwright.config.ts b/test-framework/playwright.config.ts index 8e27677..a8a479b 100644 --- a/test-framework/playwright.config.ts +++ b/test-framework/playwright.config.ts @@ -1,22 +1,28 @@ import { defineConfig, devices } from '@playwright/test'; import { getEnvironmentConfig } from './shared/config/environments'; +import { CustomReporter } from './shared/utils/reporting/CustomReporter'; const config = defineConfig({ testDir: './dev-audit', - fullyParallel: true, + fullyParallel: false, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, - workers: process.env.CI ? 1 : undefined, + workers: 1, + timeout: 30000, reporter: [ - ['html', { outputFolder: 'test-framework/reports/html' }], + ['html', { outputFolder: 'test-framework/reports/html', open: 'never' }], ['json', { outputFile: 'test-framework/reports/results.json' }], + ['junit', { outputFile: 'test-framework/reports/results.xml' }], ['list'] ], use: { baseURL: getEnvironmentConfig(process.env.TEST_ENV || 'development').baseURL, trace: 'on-first-retry', screenshot: 'only-on-failure', - video: 'retain-on-failure' + video: 'retain-on-failure', + launchOptions: { + args: ['--disable-dev-shm-usage', '--no-sandbox'] + } }, projects: [ {