Elixir Mix cover image

Combining GraphQL and LiveView with Abul Asar Sayyad - EMX 182

Elixir Mix

00:00

Ruby on Rails for Unit Testing Live View

The mock just makes life so much easier for unit testing live view. I think the best way to test the rendered HTML, both in live view and long live view way is a browser test. And we use a capybara for that Ruby on Rails. So you can write all of your HTML expectations, what happens when you click this button, where it gets redirected all of that in rspec Ruby.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app