Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: omit login redirect param#1666

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Kira-Pilot merged 2 commits intomainfromomit-login-redirect-param/kira-pilot
May 23, 2022

Conversation

Kira-Pilot
Copy link
Member

resolves#1282

I spent a fair amount of time attempting to write a test for this, but couldn't mock out the router in such a way that the redirect param?redirect=%2F reared its ugly head. Tried: using the test helpers and wrappers inrenderHelpers.tsx, mocking logged out state similarly toLoginPage.test.tsx, and even mocking outauthState. Any ideas welcome.

@Kira-PilotKira-Pilot requested a review froma team as acode ownerMay 23, 2022 14:47
@presleyp
Copy link
Contributor

Don't worry about it, some router stuff is just too hard to test expect in an E2E test. We have an E2E ticket for testing redirects so you could just make sure this use case is listed there for testing. Is the util function you're using unit tested?

Kira-Pilot reacted with thumbs up emoji

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Not having tests for this sounds ok to me.

Kira-Pilot reacted with thumbs up emoji
@Kira-Pilot
Copy link
MemberAuthor

Is the util function you're using unit tested?

@presleyp yes it is!

presleyp reacted with thumbs up emoji

@Kira-PilotKira-Pilot merged commitfa957d6 intomainMay 23, 2022
@Kira-PilotKira-Pilot deleted the omit-login-redirect-param/kira-pilot branchMay 23, 2022 15:01
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@presleyppresleyppresleyp approved these changes

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Feat: omit redirect URL parameter to / on login
3 participants
@Kira-Pilot@presleyp@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp