~/talk

Model-Based E2E Testing With State Machines

Talkat Infobip Shift 2023 · 2023-09-18..09-19· [testing, frontend-architecture]
slides:none on file

A working model-based test suite for an autocomplete UI that replaces many repetitive Playwright specs with a state machine that enumerates paths and runs them in Chromium/WebKit/Firefox. It uses xstate test to declare UI states, event cases to inject typed query payloads, and assign to context for saving the current query; guards check expected-results maps so branches only appear when data allows. Running the model generates dozens to hundreds of paths automatically and the demo tests pass locally and on CI.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 4:32Problems with manual tests
  3. 7:03What is model-based testing
  4. 9:52Setting up XState test model
  5. 14:11Running first generated test
  6. 15:58Expanding state transitions
  7. 21:22Implementing actions and guards
  8. 25:51Debugging generated paths
  9. 27:18Benefits of model-based testing
  10. 29:30Demoing Playwright headed mode
  11. 30:11Conclusion and call to action
~/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.