phoenix_test icon indicating copy to clipboard operation
phoenix_test copied to clipboard

Handle current_path patch via LiveViewWatcher

Open ftes opened this issue 8 months ago • 1 comments

If the LiveView path is patched by an async event (e.g. pubsub) it seems that %Live{current_path: _} is not updated. So even if one manually awaits the pubsub event that triggers the patch, a subsequent assert_path fails.

Should assert_path be wrapped with the same timeout mechanism used for assert_has and refute_has?

ftes avatar Apr 23 '25 14:04 ftes

To help illustrate this issue I've added #212 with currently failing tests.

idabmat avatar Apr 29 '25 13:04 idabmat