How to ignore website console error in playwright tests?

Viewed 1334

I'm using playwright for some visual regression testing. On the site in question there third-party scripts that might throw a console error if blocked by the user due to privacy concerns. My playwright tests fail due to those console errors

Is there a way to ignore some or all website console errors so my regression tests pass?

1 Answers
Related