Add path argument error to console error whitelist (#6046)

* Add path argument error to console error whitelist

* Lint
This commit is contained in:
Pierre Jacquier
2025-03-28 13:50:54 -04:00
committed by GitHub
parent ef4c606ed1
commit 42123383bb

View File

@ -288,6 +288,14 @@ export const isErrorWhitelisted = (exception: Error) => {
project: 'Google Chrome',
foundInSpec: 'e2e/playwright/testing-constraints.spec.ts',
},
{
name: 'Error',
message: 'The "path" argument must be of type string. Received undefined',
stack:
'Error: The "path" argument must be of type string. Received undefined',
project: 'Google Chrome',
foundInSpec: '', // many tests are impacted by this error
},
]
const cleanString = (str: string) => str.replace(/[`"]/g, '')