TLDR Web Dev · ARTICLES & TUTORIALS

TRACK FRONTEND JAVASCRIPT EXCEPTIONS WITH PLAYWRIGHT FIXTURES

checklyhq.com11 min read

Summary from the TLDR Web Dev newsletter

Asynchronous JavaScript code presents challenges in conducting end-to-end testing and synthetic monitoring in modern JavaScript-heavy web applications. This article highlights the common practice of testing only mission-critical features and suggests implementing a safety net to catch obvious application problems, such as JavaScript exceptions, while testing end-to-end. The article provides a detailed guide on how to set up Playwright, a testing framework, to monitor JavaScript exceptions during end-to-end tests.