-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fix:included + sign in email for forgot password link 30195 #36241
fix:included + sign in email for forgot password link 30195 #36241
Conversation
…nto fix/included-+-sign-in-email-for-forgot-password-link-30195
…nto fix/included-+-sign-in-email-for-forgot-password-link-30195
…nto fix/included-+-sign-in-email-for-forgot-password-link-30195
WalkthroughThis update introduces a new Cypress end-to-end test for the password reset flow, ensuring that the application correctly handles email inputs with special characters. Additionally, the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LoginPage
participant PasswordResetPage
User->>LoginPage: Logs out
User->>LoginPage: Enters email with special characters
User->>LoginPage: Clicks "Forgot Password"
LoginPage->>PasswordResetPage: Navigates with encoded email
PasswordResetPage->>User: Displays password reset instructions
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
const email = "[email protected]"; | ||
const forgotPasswordClassName = ".sc-hoaEDx > .sc-lknQiW > .sc-bcXHqe"; | ||
const emailPlaceholder = `[placeholder="Enter your email"]`; | ||
it("Should navigate to reset password page with the correct email", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need here cypress test case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To try with both unit test cases and Cypress I have added both things in PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sagar-qa007 based on your suggestion, I have removed the Cypress test for this particular fix. Could you please review it again when you have a moment? Thank you!
This PR has not seen activitiy for a while. It will be closed in 7 days unless further activity is detected. |
This PR has been closed because of inactivity. |
Issue 30195
Description
Used
encodeURIComponent
to encode the email while passing it to query parameters for the reset password page, ensuring the+
sign is not removed.Added Cypress test cases to verify correct handling of special characters in email addresses.
Screenshots
Summary by CodeRabbit
New Features
Bug Fixes