How to test non-deterministic user flows with Playwright
End-to-end testing and synthetic monitoring of interactive apps and sites is challenging. It's especially tough when non-deterministic flows such as cookie banners or promotion popups interrupt your test automation.
This video teaches how to write Playwright tests that handle optional and surprising UI interactions.
Note: Stefan decreased the default action timeout in this video to avoid spending time waiting for `click()` to timeout. To achieve the same result, define `actionTimeout` in your `playwright.config` or use the action's `timeout` option.
0:00 Intro
1:06 Playwright test explanation
1:40 Playwright's repeat-each flag
2:35 Playwright trace viewer
3:48 Catching failed actions individually
5:02 Catching failed actions with try/catch
Playwright docs: https://playwright.dev/
Checkly docs: https://www.checklyhq.com/docs/
#playwright