From ffde1512a0266bac9e694cf69d12a22581dcac99 Mon Sep 17 00:00:00 2001 From: Fredrik Oseberg Date: Mon, 14 Feb 2022 13:08:49 +0100 Subject: [PATCH] fix: add testId for button --- frontend/src/component/user/HostedAuth/HostedAuth.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/user/HostedAuth/HostedAuth.jsx b/frontend/src/component/user/HostedAuth/HostedAuth.jsx index d0a57bc156..ce75206ebf 100644 --- a/frontend/src/component/user/HostedAuth/HostedAuth.jsx +++ b/frontend/src/component/user/HostedAuth/HostedAuth.jsx @@ -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