Phoenix.LiveViewTest.assert_redirect
You're seeing just the function
assert_redirect
, go back to Phoenix.LiveViewTest module for more information.
Asserts a redirect will happen within timeout
.
It returns the flash messages from said redirect, if any. Note the flash will contain string keys.
Examples
render_click(view, :event_that_triggers_redirect)
flash = assert_redirect view, "/path"
assert flash["info"] == "Welcome"