Skip to content

Commit 685a410

Browse files
committed
Playwright only starts the server in dev and not CI
1 parent 7612c2b commit 685a410

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

dotcom-rendering/playwright.config.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ export default defineConfig({
4040
use: { ...devices['Desktop Chrome'] },
4141
},
4242
],
43-
webServer: {
44-
// On CI the server is already started so a no-op
45-
command: isDev ? 'make dev' : ':',
46-
url: ORIGIN,
47-
reuseExistingServer: true,
48-
stdout: 'pipe',
49-
stderr: 'pipe',
50-
},
43+
webServer: isDev
44+
? {
45+
command: 'make dev',
46+
url: ORIGIN,
47+
reuseExistingServer: true,
48+
stdout: 'pipe',
49+
stderr: 'pipe',
50+
}
51+
: undefined,
5152
});

0 commit comments

Comments
 (0)