diff --git a/frontend/src/component/user/HostedAuth/HostedAuth.tsx b/frontend/src/component/user/HostedAuth/HostedAuth.tsx index 5cbde3d723..ce2745b946 100644 --- a/frontend/src/component/user/HostedAuth/HostedAuth.tsx +++ b/frontend/src/component/user/HostedAuth/HostedAuth.tsx @@ -113,7 +113,7 @@ const HostedAuth: VFC = ({ authDetails, redirect }) => { label="Username or email" name="username" id="username" - type="string" + type="text" onChange={evt => setUsername(evt.target.value)} value={username} error={Boolean(usernameError)} @@ -130,6 +130,7 @@ const HostedAuth: VFC = ({ authDetails, redirect }) => { value={password} error={Boolean(passwordError)} helperText={passwordError} + autoComplete="current-password" data-testid={LOGIN_PASSWORD_ID} /> diff --git a/frontend/src/component/user/PasswordAuth/PasswordAuth.tsx b/frontend/src/component/user/PasswordAuth/PasswordAuth.tsx index 51c54029d6..d25e10dfc1 100644 --- a/frontend/src/component/user/PasswordAuth/PasswordAuth.tsx +++ b/frontend/src/component/user/PasswordAuth/PasswordAuth.tsx @@ -117,12 +117,12 @@ const PasswordAuth: VFC = ({ authDetails, redirect }) => { label="Username or email" name="username" id="username" - type="string" + type="text" onChange={evt => setUsername(evt.target.value)} value={username} error={Boolean(usernameError)} helperText={usernameError} - autoComplete="true" + autoComplete="username" data-testid={LOGIN_EMAIL_ID} variant="outlined" size="small" @@ -136,7 +136,7 @@ const PasswordAuth: VFC = ({ authDetails, redirect }) => { value={password} error={Boolean(passwordError)} helperText={passwordError} - autoComplete="true" + autoComplete="current-password" data-testid={LOGIN_PASSWORD_ID} />