test: cover accept invitation flow

This commit is contained in:
Ali BARIN
2024-07-10 10:33:59 +00:00
committed by Faruk AYDIN
parent 2bd4dd3ab0
commit a9f5736c12
8 changed files with 67 additions and 6 deletions

View File

@@ -57,6 +57,7 @@ export default function ResetPasswordForm() {
mb: 2,
}}
gutterBottom
data-test="accept-invitation-form-title"
>
{formatMessage('acceptInvitationForm.title')}
</Typography>
@@ -70,6 +71,7 @@ export default function ResetPasswordForm() {
<TextField
label={formatMessage('acceptInvitationForm.passwordFieldLabel')}
name="password"
data-test="password-text-field"
fullWidth
margin="dense"
type="password"
@@ -90,6 +92,7 @@ export default function ResetPasswordForm() {
'acceptInvitationForm.confirmPasswordFieldLabel',
)}
name="confirmPassword"
data-test="confirm-password-text-field"
fullWidth
margin="dense"
type="password"
@@ -118,6 +121,7 @@ export default function ResetPasswordForm() {
<LoadingButton
type="submit"
variant="contained"
data-test="submit-button"
color="primary"
sx={{ boxShadow: 2, my: 3 }}
loading={acceptInvitation.isPending}

View File

@@ -151,6 +151,7 @@ function AddAppConnection(props) {
color="primary"
sx={{ boxShadow: 2 }}
loading={inProgress}
disabled={!authenticate}
data-test="create-connection-button"
>
{formatMessage('addAppConnection.submit')}

View File

@@ -35,6 +35,7 @@ root.render(
</SnackbarProvider>
</Router>,
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals