diff --git a/packages/cypress-plugin/test/integration/src/parse-output.ts b/packages/cypress-plugin/test/integration/src/parse-output.ts index a2cb307..17ad736 100644 --- a/packages/cypress-plugin/test/integration/src/parse-output.ts +++ b/packages/cypress-plugin/test/integration/src/parse-output.ts @@ -207,9 +207,12 @@ const parseRunStarting = ( expect(tableEntries["Cypress"]).toMatch(/^[0-9]+\.[0-9]+\.[0-9]+$/); expect(tableEntries["Browser"]).toMatch( - // Electron is much faster on Windows than Chrome, and only a tiny bit slower on Linux, so we - // just use it for all the integration tests. - /^Electron [0-9]+ \x1B\[90m\(headless\)\x1B\[39m$/ + new RegExp( + `^${ + // Chrome is slow to launch on Windows. + process.platform === "win32" ? "Edge" : "Chrome" + } [0-9]+ \x1B\\[90m\\(headless\\)\x1B\\[39m$` + ) ); expect(tableEntries["Node Version"]).toMatch( new RegExp( diff --git a/packages/cypress-plugin/test/integration/src/run-test-case.ts b/packages/cypress-plugin/test/integration/src/run-test-case.ts index 4422667..bf8fa83 100644 --- a/packages/cypress-plugin/test/integration/src/run-test-case.ts +++ b/packages/cypress-plugin/test/integration/src/run-test-case.ts @@ -835,6 +835,9 @@ export const runTestCase = async ( "--", // e2e/component `--${params.testMode}`, + // Chrome is faster than Electron, at least on Mac. However, it's much slower on Windows. + "--browser", + process.platform === "win32" ? "edge" : "chrome", ...(params.specNameStubs !== undefined ? [ "--spec",