test: match newline in Firefox CDP spawn message (#30753)

This commit is contained in:
Matt Schile
2024-12-12 07:42:35 -07:00
committed by GitHub
parent 3e1d4b9eff
commit 499c361636
+1 -1
View File
@@ -165,7 +165,7 @@ export const normalizeStdout = function (str: string, options: any = {}) {
// Replaces connection warning since Chrome or Firefox sometimes take longer to connect
.replace(/Still waiting to connect to .+, retrying in 1 second \(attempt .+\/.+\)\n/g, '')
// Replaces CDP connection error message in Firefox since Cypress will retry
.replace(/Failed to spawn CDP with Firefox. Retrying.*\.\.\./, '')
.replace(/Failed to spawn CDP with Firefox. Retrying.*\.\.\.\n/g, '')
if (options.browser === 'webkit') {
// WebKit throws for lookups on undefined refs with "Can't find variable: <var>"