test: update snackbar with variant and data-test attributes

This commit is contained in:
QAComet
2023-10-26 15:43:42 -06:00
committed by Ali BARIN
parent bf7ab475ee
commit 1a55cc8604
18 changed files with 95 additions and 62 deletions

View File

@@ -47,6 +47,10 @@ export default function CreateUser(): React.ReactElement {
enqueueSnackbar(formatMessage('createUser.successfullyCreated'), {
variant: 'success',
persist: true,
SnackbarProps: {
'data-test': 'snackbar-create-user-success',
}
});
navigate(URLS.USERS);