~/talk

Advanced Playwright Techniques for Flawless Testing

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [testing, web-platform]
slides:none on file

Playwright demonstrations use the VS Code codegen to record TypeScript tests, the trace viewer for DOM snapshots and debugging, and built‑in locators and auto‑retrying assertions to reduce flakiness. Examples show API mocking via route.fulfill, time control with page.clock (setFixedTime and fastForward), storageState + project dependencies for reusable logins, CLI helpers like --only-changed and --last-failed, sharding strategies, and optional cloud browsers that run 600 tests in ~2:17 using ~35 workers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45What is Playwright
  3. 3:09Playwright features
  4. 5:14Generating tests
  5. 9:26Debugging tests
  6. 12:55Advanced tips
  7. 17:45API mocking
  8. 23:46Date/time testing
  9. 28:44Project dependencies
  10. 33:23Run changed tests
  11. 39:20Scaling tests
  12. 46:01Community & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.