I am running into a problem writing a test for resetting a stream in an event. I expect that resetting a stream would remove the previously inserted elements, but it seems that it does not.
It works fine when manually testing in the browser, so this seems to be an issue with my test itself or with LiveViewTest.
Unfortunately I have not had time to look into this in more detail.
I think there aren’t many people testing LiveView (streams) outside of e2e tests involving a real browser. If I have understood the code correctly, the Elixir test client has to emulate quite a lot of what the JS part of LiveView does. It is inevitable that the two implementations would drift apart sometimes. That is why in this case we have failing tests for code which works as intended in the browser.