diff --git a/features/admin.server-configurations.v1/components/__tests__/password-recovery-form.test.tsx b/features/admin.server-configurations.v1/components/__tests__/password-recovery-form.test.tsx index d808b5f7c85..9d1eb3f82d9 100644 --- a/features/admin.server-configurations.v1/components/__tests__/password-recovery-form.test.tsx +++ b/features/admin.server-configurations.v1/components/__tests__/password-recovery-form.test.tsx @@ -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(); diff --git a/identity-apps-core/apps/recovery-portal/src/main/resources/org/wso2/carbon/identity/mgt/recovery/endpoint/i18n/Resources.properties b/identity-apps-core/apps/recovery-portal/src/main/resources/org/wso2/carbon/identity/mgt/recovery/endpoint/i18n/Resources.properties index d867f4addf3..cb9a506ccd4 100644 --- a/identity-apps-core/apps/recovery-portal/src/main/resources/org/wso2/carbon/identity/mgt/recovery/endpoint/i18n/Resources.properties +++ b/identity-apps-core/apps/recovery-portal/src/main/resources/org/wso2/carbon/identity/mgt/recovery/endpoint/i18n/Resources.properties @@ -38,6 +38,7 @@ sign.up.button=Sign Up # # +# 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