test: add admin account setup tests

This commit is contained in:
Jakub P.
2024-07-18 12:29:35 +02:00
parent 27610c002c
commit 129327f40d
6 changed files with 121 additions and 5 deletions

View File

@@ -134,6 +134,7 @@ function InstallationForm() {
fullWidth
margin="dense"
type="password"
data-test="password-text-field"
error={touchedFields.password && !!errors?.password}
helperText={
touchedFields.password && errors?.password?.message
@@ -155,6 +156,7 @@ function InstallationForm() {
fullWidth
margin="dense"
type="password"
data-test="repeat-password-text-field"
error={touchedFields.confirmPassword && !!errors?.confirmPassword}
helperText={
touchedFields.confirmPassword &&
@@ -186,7 +188,7 @@ function InstallationForm() {
)}
/>
{install.isSuccess && (
<Alert severity="success" sx={{ mt: 3, fontWeight: 500 }}>
<Alert data-test="success-alert" severity="success" sx={{ mt: 3, fontWeight: 500 }}>
{formatMessage('installationForm.success', {
link: (str) => (
<Link