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:
parent
0c5ca189ec
commit
ffde1512a0
@ -12,7 +12,11 @@ import ConditionallyRender from '../../common/ConditionallyRender';
|
|||||||
import PasswordField from '../../common/PasswordField/PasswordField';
|
import PasswordField from '../../common/PasswordField/PasswordField';
|
||||||
import { useAuthApi } from '../../../hooks/api/actions/useAuthApi/useAuthApi';
|
import { useAuthApi } from '../../../hooks/api/actions/useAuthApi/useAuthApi';
|
||||||
import { useAuthUser } from '../../../hooks/api/getters/useAuth/useAuthUser';
|
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 HostedAuth = ({ authDetails }) => {
|
||||||
const commonStyles = useCommonStyles();
|
const commonStyles = useCommonStyles();
|
||||||
@ -126,6 +130,7 @@ const HostedAuth = ({ authDetails }) => {
|
|||||||
color="primary"
|
color="primary"
|
||||||
type="submit"
|
type="submit"
|
||||||
className={styles.button}
|
className={styles.button}
|
||||||
|
data-test={LOGIN_BUTTON}
|
||||||
>
|
>
|
||||||
Sign in
|
Sign in
|
||||||
</Button>
|
</Button>
|
||||||
|
Loading…
Reference in New Issue
Block a user