Skip to content

Commit

Permalink
Merge pull request #219 from edx/VAN-383
Browse files Browse the repository at this point in the history
autocomplete form input
  • Loading branch information
mubbsharanwar authored Mar 29, 2021
2 parents ee499d4 + ef6f752 commit aae757d
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common-components/AuthnValidationFormGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const AuthnCustomValidationFormGroup = (props) => {
value: props.value,
className: props.inputFieldStyle,
'aria-invalid': props.ariaInvalid,
autoComplete: 'on',
};
inputProps.onChange = (e) => onChangeHandler(e, onChange);
inputProps.onClick = (e) => onClickHandler(e, onClick);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ exports[`ForgotPasswordPage should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="forgot-password-input"
name="email"
Expand Down Expand Up @@ -154,6 +155,7 @@ exports[`ForgotPasswordPage should match forbidden section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="forgot-password-input"
name="email"
Expand Down Expand Up @@ -261,6 +263,7 @@ exports[`ForgotPasswordPage should match pending section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="forgot-password-input"
name="email"
Expand Down
10 changes: 10 additions & 0 deletions src/login/tests/__snapshots__/LoginPage.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ exports[`LoginPage should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -70,6 +71,7 @@ exports[`LoginPage should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand Down Expand Up @@ -241,6 +243,7 @@ exports[`LoginPage should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -266,6 +269,7 @@ exports[`LoginPage should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand Down Expand Up @@ -435,6 +439,7 @@ exports[`LoginPage should match forget password alert message snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -460,6 +465,7 @@ exports[`LoginPage should match forget password alert message snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand Down Expand Up @@ -589,6 +595,7 @@ exports[`LoginPage should match pending button state snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -614,6 +621,7 @@ exports[`LoginPage should match pending button state snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand Down Expand Up @@ -780,6 +788,7 @@ exports[`LoginPage should show error message 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -805,6 +814,7 @@ exports[`LoginPage should show error message 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand Down
18 changes: 18 additions & 0 deletions src/register/tests/__snapshots__/RegistrationPage.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="name"
name="name"
Expand All @@ -69,6 +70,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="username"
name="username"
Expand All @@ -94,6 +96,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -119,6 +122,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand All @@ -144,6 +148,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<select
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control text-muted border-gray-600"
id="country"
name="country"
Expand Down Expand Up @@ -1474,6 +1479,7 @@ exports[`RegistrationPageTests should match TPA provider snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
checked={false}
className="form-check-input"
id="optional"
Expand Down Expand Up @@ -1607,6 +1613,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="name"
name="name"
Expand All @@ -1632,6 +1639,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="username"
name="username"
Expand All @@ -1657,6 +1665,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -1682,6 +1691,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand All @@ -1707,6 +1717,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<select
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control text-muted border-gray-600"
id="country"
name="country"
Expand Down Expand Up @@ -3037,6 +3048,7 @@ exports[`RegistrationPageTests should match default section snapshot 1`] = `
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
checked={false}
className="form-check-input"
id="optional"
Expand Down Expand Up @@ -3125,6 +3137,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="name"
name="name"
Expand All @@ -3150,6 +3163,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="username"
name="username"
Expand All @@ -3175,6 +3189,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="email"
name="email"
Expand All @@ -3200,6 +3215,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="password"
name="password"
Expand All @@ -3225,6 +3241,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<select
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control text-muted border-gray-600"
id="country"
name="country"
Expand Down Expand Up @@ -4555,6 +4572,7 @@ exports[`RegistrationPageTests should match pending button state snapshot 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
checked={false}
className="form-check-input"
id="optional"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ exports[`ResetPasswordPage should match invalid token message section snapshot 1
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="reset-password-input"
name="new-password1"
Expand All @@ -58,6 +59,7 @@ exports[`ResetPasswordPage should match invalid token message section snapshot 1
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="confirm-password-input"
name="new-password2"
Expand Down Expand Up @@ -132,6 +134,7 @@ exports[`ResetPasswordPage should match pending reset message section snapshot 1
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="reset-password-input"
name="new-password1"
Expand All @@ -157,6 +160,7 @@ exports[`ResetPasswordPage should match pending reset message section snapshot 1
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="confirm-password-input"
name="new-password2"
Expand Down Expand Up @@ -252,6 +256,7 @@ exports[`ResetPasswordPage should match reset password default section snapshot
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="reset-password-input"
name="new-password1"
Expand All @@ -277,6 +282,7 @@ exports[`ResetPasswordPage should match reset password default section snapshot
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="confirm-password-input"
name="new-password2"
Expand Down Expand Up @@ -389,6 +395,7 @@ exports[`ResetPasswordPage show spinner component during token validation 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="reset-password-input"
name="new-password1"
Expand All @@ -414,6 +421,7 @@ exports[`ResetPasswordPage show spinner component during token validation 1`] =
<input
aria-describedby=""
aria-invalid={false}
autoComplete="on"
className="form-control border-gray-600"
id="confirm-password-input"
name="new-password2"
Expand Down

0 comments on commit aae757d

Please sign in to comment.