From eee6a57794d14702e2e694ca499ec1fa29200329 Mon Sep 17 00:00:00 2001 From: Marcarrian Date: Fri, 17 Nov 2023 10:33:00 +0100 Subject: [PATCH] test: launch web servers for end-to-end tests only on CI --- .../scion/e2e-testing/playwright.config.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/scion/e2e-testing/playwright.config.ts b/projects/scion/e2e-testing/playwright.config.ts index e48c52473..98f762863 100644 --- a/projects/scion/e2e-testing/playwright.config.ts +++ b/projects/scion/e2e-testing/playwright.config.ts @@ -17,28 +17,28 @@ const runHeadless = !!process.env['HEADLESS']; export default { forbidOnly: runInCI, fullyParallel: true, - webServer: [ + webServer: runInCI ? [ { - command: runInCI ? 'npm run workbench-testing-app:http-server' : 'npm run workbench-testing-app:serve', + command: 'npm run workbench-testing-app:http-server', port: 4200, - reuseExistingServer: !runInCI, + reuseExistingServer: false, }, { - command: runInCI ? 'npm run workbench-client-testing-app:4201:http-server' : 'npm run workbench-client-testing-app:4201:serve', + command: 'npm run workbench-client-testing-app:4201:http-server', port: 4201, - reuseExistingServer: !runInCI, + reuseExistingServer: false, }, { - command: runInCI ? 'npm run workbench-client-testing-app:4202:http-server' : 'npm run workbench-client-testing-app:4202:serve', + command: 'npm run workbench-client-testing-app:4202:http-server', port: 4202, - reuseExistingServer: !runInCI, + reuseExistingServer: false, }, { - command: runInCI ? 'npm run workbench-testing-app:basehref:http-server' : 'npm run workbench-testing-app:basehref:serve', + command: 'npm run workbench-testing-app:basehref:http-server', port: 4300, - reuseExistingServer: !runInCI, + reuseExistingServer: false, }, - ], + ] : [], use: { browserName: 'chromium', headless: runHeadless,