Anatomy of a LiveView Test

This is how I like to write most of my LiveView tests:

  • mount LiveView with live/2,
  • target (element/3 or form/3) and perform a render action
  • make an assertion with has_element?/3

The familiar setup-exercise-verify testing pattern. 🥳

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.