Closed dersmon closed 1 week ago
Basically this could be rephrased a bit: https://github.com/phoenixframework/phoenix_live_view/pull/3449
@dersmon there's no way to make it wait by default, so I'd say please go ahead and create a PR for the docs :)
This might be just a documentation issue.
Environment
{phoenix_live_view, "~> 1.0.0-rc.1"}
Actual behavior
I have some live views that load additional information using
assign_async
. When testing the primary functionality of the view (stuff that is not relying onassing_async
), I experienced error messages like the following:I can fix this by adding a (otherwise superfluous)
render_async
at the end of every test.Expected behavior
If you deem this the most practical solution I'd be happy to add an appropriate line to the docs for
assign_async
orstart_async
. I was just wondering if there is a way to make tests wait for async assigns by default?