Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
RushanNanayakkara committed Jun 19, 2024
1 parent 9029033 commit f078ab4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,25 @@ describe("PasswordRecoveryForm", () => {

if (!uppercaseCheckbox || !lowercaseCheckbox || !numericCheckbox ) return;

(!uppercaseCheckbox.checked) && fireEvent.click(uppercaseCheckbox);
(lowercaseCheckbox.checked) && fireEvent.click(lowercaseCheckbox);
(numericCheckbox.checked) && fireEvent.click(numericCheckbox);
if (!uppercaseCheckbox.checked) fireEvent.click(uppercaseCheckbox);
if (lowercaseCheckbox.checked) fireEvent.click(lowercaseCheckbox);
if (numericCheckbox.checked) fireEvent.click(numericCheckbox);
expect(lowercaseCheckbox).not.toBeChecked();
expect(numericCheckbox).not.toBeChecked();
expect(uppercaseCheckbox).toBeChecked();
expect(uppercaseCheckbox).toBeDisabled();

(!lowercaseCheckbox.checked) && fireEvent.click(lowercaseCheckbox);
(uppercaseCheckbox.checked) && fireEvent.click(uppercaseCheckbox);
(numericCheckbox.checked) && fireEvent.click(numericCheckbox);
if (!lowercaseCheckbox.checked) fireEvent.click(lowercaseCheckbox);
if (uppercaseCheckbox.checked) fireEvent.click(uppercaseCheckbox);
if (numericCheckbox.checked) fireEvent.click(numericCheckbox);
expect(uppercaseCheckbox).not.toBeChecked();
expect(numericCheckbox).not.toBeChecked();
expect(lowercaseCheckbox).toBeChecked();
expect(lowercaseCheckbox).toBeDisabled();

(!numericCheckbox.checked) && fireEvent.click(numericCheckbox);
(uppercaseCheckbox.checked) && fireEvent.click(uppercaseCheckbox);
(lowercaseCheckbox.checked) && fireEvent.click(lowercaseCheckbox);
if (!numericCheckbox.checked) fireEvent.click(numericCheckbox);
if (uppercaseCheckbox.checked) fireEvent.click(uppercaseCheckbox);
if (lowercaseCheckbox.checked) fireEvent.click(lowercaseCheckbox);
expect(lowercaseCheckbox).not.toBeChecked();
expect(uppercaseCheckbox).not.toBeChecked();
expect(numericCheckbox).toBeChecked();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ sign.up.button=Sign Up
# <!-- End of Sign Up Screen Translations -->

# <!-- SMS OTP -->
# EDITABLE=true,SCREEN="sms-otp",MULTI_LINE=false
sms.otp.heading=OTP Verification
enter.code.sent.smsotp=Enter the code sent to your mobile phone
sms.otp.resend.code=Resend Code
Expand Down

0 comments on commit f078ab4

Please sign in to comment.