Having trouble to run existing live view tests with Lazy_html after upgrading to live_view 1.1.11.

After upgrading to Phoenix LiveView 1.1.11, I encountered issues in my LiveView tests due to the introduction of Lazy_HTML—a struct that replaces the previously returned HTML string. Since LazyHTML does not implement the Enumerable protocol, any attempt to iterate over or pattern match against it using Enum functions results in a Protocol.UndefinedError. This change requires explicitly converting the struct to a string before performing assertions or content checks.

Hey @Nimalan,

you should not see LazyHTML structs when using the LiveViewTest API (like render Phoenix.LiveViewTest — Phoenix LiveView v1.1.11 ). Can you please clarify with some code where you’re having those issues?