This repository was archived by the owner on Sep 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
packages/cypress-plugin/test/integration/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,9 +207,12 @@ const parseRunStarting = (
207207
208208 expect ( tableEntries [ "Cypress" ] ) . toMatch ( / ^ [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + $ / ) ;
209209 expect ( tableEntries [ "Browser" ] ) . toMatch (
210- // Electron is much faster on Windows than Chrome, and only a tiny bit slower on Linux, so we
211- // just use it for all the integration tests.
212- / ^ E l e c t r o n [ 0 - 9 ] + \x1B \[ 9 0 m \( h e a d l e s s \) \x1B \[ 3 9 m $ /
210+ new RegExp (
211+ `^${
212+ // Chrome is slow to launch on Windows.
213+ process . platform === "win32" ? "Edge" : "Chrome"
214+ } [0-9]+ \x1B\\[90m\\(headless\\)\x1B\\[39m$`
215+ )
213216 ) ;
214217 expect ( tableEntries [ "Node Version" ] ) . toMatch (
215218 new RegExp (
Original file line number Diff line number Diff line change @@ -835,6 +835,9 @@ export const runTestCase = async (
835835 "--" ,
836836 // e2e/component
837837 `--${ params . testMode } ` ,
838+ // Chrome is faster than Electron, at least on Mac. However, it's much slower on Windows.
839+ "--browser" ,
840+ process . platform === "win32" ? "edge" : "chrome" ,
838841 ...( params . specNameStubs !== undefined
839842 ? [
840843 "--spec" ,
You can’t perform that action at this time.
0 commit comments