Skip to content

Conversation

@DuldR
Copy link
Contributor

@DuldR DuldR commented Jul 9, 2025

This now allows for handle_redirect to take a custom timeout. If nothing is provided, we default to what Phoenix.LiveViewTest.assert_redirect already uses(100ms) at: Phoenix.LiveViewTest.assert_redirect.

With this, you can now do something like:

page
|> Pages.visit("/login")
|> Pages.handle_redirect(timeout: 500)

This should address #22

@DuldR DuldR force-pushed the add-timeout-to-handle-redirect branch from 1a6d533 to e4805cd Compare July 9, 2025 22:45
@DuldR DuldR force-pushed the add-timeout-to-handle-redirect branch from e4805cd to 6baf5a0 Compare July 9, 2025 22:46
@sax
Copy link
Member

sax commented Jul 9, 2025

Cool! I'm in the middle of some head-breaking code right now, but will get this reviewed and released tomorrow morning. Looks good at first glance, though!

@sax sax merged commit 5522571 into synchronal:main Jul 10, 2025
10 checks passed
@sax
Copy link
Member

sax commented Jul 11, 2025

Just released v4.0.0. Not that there are 3rd-party drivers, but if there were this would be a breaking change on the driver side. Whee!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants