Frontend & browser·Testing a user interface
the test recorded the rendered markup and now fails whenever any of it changes, for any reason.
Snapshot test
Also calledserialised snapshot
Asserting that output matches a stored copy from a previous run. It is nearly free to write and catches unintended changes, which is also its weakness: a large snapshot fails on every legitimate edit and gets updated without being read. Small, targeted snapshots of things that genuinely should not change are worth keeping; whole-component ones become a rubber stamp.