Skip to content

qa check password#165

Open
AnnNikiforova wants to merge 2 commits intomate-academy:mainfrom
AnnNikiforova:develop
Open

qa check password#165
AnnNikiforova wants to merge 2 commits intomate-academy:mainfrom
AnnNikiforova:develop

Conversation

@AnnNikiforova
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Excellent work on the comprehensive test suite for the checkPassword function! Your tests cover nearly all the specified requirements. However, changes are needed for one test case that contradicts the task description. The test expecting checkPassword('PASSWORD1!') to be false is incorrect because the rules do not require a lowercase letter, only an uppercase one. Based on the provided rules, 'PASSWORD1!' should be a valid password. Please adjust this test to align with the requirements, and your solution will be perfect.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment on lines +42 to +43
it('should return false for password without lowercase letter', () => {
expect(checkPassword('PASSWORD1!')).toBe(false);

Choose a reason for hiding this comment

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

This test case appears to contradict the requirements. The rules state that a password must contain at least one uppercase letter, one digit, and one special character, but they do not mention a requirement for at least one lowercase letter. Based on the provided rules, a password like 'PASSWORD1!' should be considered valid.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Excellent work on this! I am approving your solution. You've done a great job addressing the feedback from the previous review. Your test suite is now comprehensive and correctly validates all the password requirements specified in the task, including edge cases for length, character types, and required components. The tests are well-written and cover all necessary scenarios. Well done!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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