Spot performance regressions with Playwright test timeouts



AI Summary

This video explains how to use Playwright’s test timeouts feature to detect and prevent performance regressions in web application end-to-end tests. Playwright allows you to run tests on browser flows like login and interactions, and you can set global or per-test timeouts to fail tests that exceed a certain duration, helping to enforce performance budgets. The video demonstrates running Playwright tests with its UI and configuring timeout settings to catch tests that take longer than expected, such as a login flow taking more than 5 seconds. It also highlights the benefit of synthetic monitoring with tools like Checkly for running scheduled Playwright checks to monitor live production performance over time, detect regressions, and maintain a snappy user experience. The presenter, Stefan from Checkly, encourages trying this method to keep tests and web apps performant.