How PhoenixTest unifies LiveView and static page testing
mainIn standard Phoenix testing, LiveView pages are typically tested using live/2 helpers, while static (server-rendered) pages are tested using controller helpers like get/2 and html_response/2. These two approaches have vastly different APIs and make it difficult to test flows that cross the boundary between them.
PhoenixTest abstracts these differences away, allowing you to use a single set of interaction commands (like visit/1, click_link/1, fill_in/2, and click_button/1) regardless of whether the target page is a LiveView or a traditional controller-based view. This enables testing complete user journeys from a user's perspective.