Playwright "Timed out waiting ... from config.webServer"
Playwright started your app via webServer but the configured url never responded within the timeout. The server is slow to compile/boot in CI, crashed on start, or the url/port does not match.
What this error means
The run aborts before tests with "Timed out waiting 60000ms from config.webServer." No specs run because Playwright never confirmed the app was ready.
Playwright output
Error: Timed out waiting 60000ms from config.webServer.
at WebServer._waitForProcessCommon causes
App boots slower than the timeout in CI
A cold build (Next/Vite production build, asset compilation) on a loaded runner takes longer than the default 60s readiness window - a timing race that often clears on retry.
Wrong url/port or a crashed server
The webServer.url does not match where the app listens, or the start command exits/crashes immediately, so the url never becomes reachable.
How to fix it
Raise the readiness timeout and match the url
playwright.config.ts
// playwright.config.ts
export default defineConfig({
webServer: {
command: 'npm run start',
url: 'http://localhost:3000',
timeout: 180_000,
reuseExistingServer: !process.env.CI,
},
});Diagnose a server that never starts
- Run the
commandmanually in CI to confirm it boots and listens on the expected port. - Check the server logs Playwright prints for a crash on startup.
- Build the app in a prior step so
webServeronly has to serve, not compile.
How to prevent it
- Set a generous
webServer.timeoutfor the slowest CI tier. - Pre-build the app before the E2E step so boot is fast.
- Keep
webServer.urland the app port in one shared value.
Related guides
Playwright "Test timeout of 30000ms exceeded" in CIFix Playwright "Test timeout of 30000ms exceeded" / "locator ... Timeout exceeded" in CI - slow navigation, a…
Cypress "could not verify that this server is running"Fix Cypress "Cypress could not verify that this server is running" in CI - the app under test was not started…
Playwright "browserType.launch: Executable doesn't exist"Fix Playwright "browserType.launch: Executable doesn't exist" in CI - the browser binaries were never downloa…