1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: add testId for button

This commit is contained in:
Fredrik Oseberg 2022-02-14 13:08:49 +01:00
parent 0c5ca189ec
commit ffde1512a0

View File

@ -12,7 +12,11 @@ import ConditionallyRender from '../../common/ConditionallyRender';
import PasswordField from '../../common/PasswordField/PasswordField';
import { useAuthApi } from '../../../hooks/api/actions/useAuthApi/useAuthApi';
import { useAuthUser } from '../../../hooks/api/getters/useAuth/useAuthUser';
import { LOGIN_EMAIL_ID, LOGIN_PASSWORD_ID } from '../../../testIds';
import {
LOGIN_BUTTON,
LOGIN_EMAIL_ID,
LOGIN_PASSWORD_ID,
} from '../../../testIds';
const HostedAuth = ({ authDetails }) => {
const commonStyles = useCommonStyles();
@ -126,6 +130,7 @@ const HostedAuth = ({ authDetails }) => {
color="primary"
type="submit"
className={styles.button}
data-test={LOGIN_BUTTON}
>
Sign in
</Button>