test: write tests for role management (#1396)

This commit is contained in:
QAComet
2023-11-06 02:35:20 -07:00
committed by GitHub
parent 5fb48ed54b
commit 1581b5ac0a
21 changed files with 899 additions and 13 deletions

View File

@@ -92,6 +92,7 @@ export default function EditRole(): React.ReactElement {
required={true}
name="name"
label={formatMessage('roleForm.name')}
data-test="name-input"
fullWidth
/>
@@ -99,6 +100,7 @@ export default function EditRole(): React.ReactElement {
disabled={role.isAdmin}
name="description"
label={formatMessage('roleForm.description')}
data-test="description-input"
fullWidth
/>
</>
@@ -116,6 +118,7 @@ export default function EditRole(): React.ReactElement {
sx={{ boxShadow: 2 }}
loading={loading}
disabled={role?.isAdmin || roleLoading}
data-test="update-button"
>
{formatMessage('editRole.submit')}
</LoadingButton>