Skip to content

Commit

Permalink
test: normalize Firefox CDP spawn message
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile committed Dec 3, 2024
1 parent 06aeb9d commit 9fccae3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system-tests/lib/normalizeStdout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export const normalizeStdout = function (str: string, options: any = {}) {
.replace(crossOriginErrorRe, '[Cross origin error message]')
// 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.*\.\.\./, '')

if (options.browser === 'webkit') {
// WebKit throws for lookups on undefined refs with "Can't find variable: <var>"
Expand Down

0 comments on commit 9fccae3

Please sign in to comment.