Skip to content

Add follow_redirect/2 to Phoenix.ConnTest #5797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2024

Conversation

Schultzer
Copy link
Contributor

This PR adds follow_redirect/2 to Phoenix.ConnTest.

When testing complex redirect flows e.g a callback from an external source, then I found it as usefull as Phoenix.LiveViewTest.follow_redirect.

This PR adds follow_redirect/2 to Phoenix.ConnTest.

When testing complex redirect flows e.g a callback from an external source, then I found it as usefull as Phoenix.LiveViewTest.follow_redirect.
@josevalim josevalim merged commit 5d3dc22 into phoenixframework:main May 2, 2024
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@josevalim
Copy link
Member

I have to revert this because if conflicts with follow_redirect in LiveView. We probably need a separate name for it.

josevalim added a commit that referenced this pull request Jun 18, 2024
This reverts commit 5d3dc22.
josevalim added a commit that referenced this pull request Jun 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
This conflicts with follow_redirect in LiveView.

Reverts #5797
@Schultzer
Copy link
Contributor Author

Schultzer commented Jun 18, 2024

I have to revert this because if conflicts with follow_redirect in LiveView. We probably need a separate name for it.

Couldn’t we unify both APIs and only compile certain functions if LiveView is available?

osbre pushed a commit to osbre/phoenix that referenced this pull request Nov 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
)" (phoenixframework#5849)

This conflicts with follow_redirect in LiveView.

Reverts phoenixframework#5797
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.

None yet

2 participants