Skip to content

Commit

Permalink
test: launch web servers for end-to-end tests only on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcarrian committed Nov 17, 2023
1 parent 7e26d55 commit eee6a57
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions projects/scion/e2e-testing/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eee6a57

Please sign in to comment.