Added flow for resetting password and testing for said functionality - including setup of a Cypress Github Action
Changes
Imported react-pin-field for the code
Added PasswordRecoveryModal which handles the process of resetting password
Added CodeVerification component which lets the user input their email and enter a code sent to this email
Added NewPasswordScreen component which let's the user enter their new password and update it
Added NavigationFooter component with cancel/continue buttons for the modal
Added TextInput component which creates a functional input field for text input
Added PasswordEye component which lets the user toggle password visibility
Added the modal to Login page
Updated relevant snapshots
Fixed typos in LoginRe(s)ponseError
Installed cypress
Installed @types/jest for using describe/it in cypress
Added cypress.yml file to .github/workflows
Created test going through the reset password flow assuming positive response from api calls
Added ids to relevant components for easier testing
Added jest and cypress to types in tsconfig and cypress to include
Created more cypress tests for checking error responses
Moved validators to a utilities/validation file
Added tests for validators
Added more documentation/comments for new files
Added scripts for cypress testing
Related Issues
None.
Checklist
[x] Code has been tested locally and passes all relevant tests.
[x] Documentation has been updated to reflect the changes, if applicable.
[x] Code follows the established coding style and guidelines of the project.
[x] All new and existing tests related to the changes have passed.
[x] Any necessary dependencies or new packages have been properly documented.
[x] Pull request title and description are clear and descriptive.
[x] Reviewers have been assigned to the pull request.
[x] Any potential security implications have been considered and addressed.
[x] Performance impact of the changes has been evaluated, if relevant.
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Branch: dev
Commit id: f0013e8
Notes for Reviewers
Provide any additional information that could be useful for reviewers. This could include context about the problem being solved, implementation details, or anything else that might aid in the review process.
Description
Added flow for resetting password and testing for said functionality - including setup of a Cypress Github Action
Changes
Imported react-pin-field for the code
Related Issues
None.
Checklist
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
Branch: dev
Commit id: f0013e8
Notes for Reviewers
Provide any additional information that could be useful for reviewers. This could include context about the problem being solved, implementation details, or anything else that might aid in the review process.