A test fails on the build server at three in the morning. It passes on your machine every time. In most tools this is where you start adding logs and guessing.
Playwright records the whole run, and the recording is good enough that guessing is usually unnecessary. This is the feature that most convinces teams to switch, so it is worth understanding properly.
Turn it on in playwright.config.ts: