Comment

Comment by msmithstubbs

Yes, LiveViewTest (a module included in Phoenix LiveView) supports testing connected mounts.

You can write a test that just fetches the disconnected state, and then upgrades it to a connected state (see https://hexdocs.pm/phoenix_live_view/Phoenix.LiveViewTest.ht...).

If you want to test the result of a button click there's support for that, too, with things like `render_click`.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton