Elixir Wizards S5E4 Viktória Fördős on Erlang ThinkingElixir 027: Ash Framework with Zach Daniel

Using has_element?/3 for better LiveViewTest assertions

It’s tempting to write LiveViewTest assertions that specify too much of our HTML. But that couples our tests to the implementation specifics. There’s a better way: the has_element?/3 helper can help us be specific without adding coupling.

https://www.germanvelasco.com/blog/using-has-element-for-better-liveviewtest-assertions