chore: add data-test attributes

pull/5924/head
k3yi0 2022-06-02 17:14:56 +02:00
parent 4afab8f977
commit 5f85263d00
4 changed files with 4 additions and 1 deletions

View File

@ -38,6 +38,7 @@ class RoleEditingRow extends Component {
autoFocus={true}
spellCheck={false}
autoComplete="false"
data-test="role-name--input"
/>
</td>
)

View File

@ -67,7 +67,7 @@ const RoleRow = ({
}
return (
<tr>
<tr data-test={`role-${roleName}--row`}>
<td style={{width: `${ROLES_TABLE.colName}px`}}>{roleName}</td>
<td>
{allPermissions && allPermissions.length ? (

View File

@ -74,6 +74,7 @@ const UserRow = ({
<td
className="admin-table--left-offset"
title={!allRoles.length ? 'No roles are defined' : ''}
data-test="roles-granted"
>
{user.roles.map((role, i) => (
<span key={i} className="role-value granted">

View File

@ -383,6 +383,7 @@ const UserPage = ({
: ''
}`}
onClick={onRoleChange}
data-test={`role-${roleName}--button`}
>
{roleName}
</div>