phoenix_live_view
phoenix_live_view copied to clipboard
Fix lv:clear-flash tests on components
The current Phoenix.LiveViewTest.FlashComponent
does not target the lv:clear-flash
actions to itself and the test is passing due to a false positive. More info at https://github.com/phoenixframework/phoenix_live_view/issues/1842#issuecomment-1099729676
It does not address the case explained at https://github.com/phoenixframework/phoenix_live_view/issues/1842#issuecomment-1018569574 but AFAIK this test is supposed to be about clearing the flash of the component itself so the changes here are just to fix this specific scenario.