Anatomy of a LiveView Test
Notes
This is how I like to write most of my LiveView tests:
- mount LiveView with
live/2
, - target (
element/3
orform/3
) and perform a render action - make an assertion with
has_element?/3
The familiar setup-exercise-verify testing pattern. 🥳