How to do "top-down" LiveView rendering tests of nested LiveComponents

To make this more clear I’ve setup a repo here: https://github.com/shamanime/phx_live_component_test

It is a fresh Phoenix app created with --live with one LiveView that conditionally displays/renders a component.

I’ve used the same snipped I posted here to test the component: https://github.com/shamanime/phx_live_component_test/commit/a3b600bd3bf8183ea1571c00e23e083e1c0715eb

6 Likes