address PR feedback from Erik, remove user ID per Haley feedback

This commit is contained in:
jenny-s51 2021-02-25 10:17:42 -05:00
parent 1f379e70eb
commit eca3bb8e71
3 changed files with 4 additions and 7 deletions

View file

@ -107,8 +107,8 @@ describe("Realm roles test", function () {
cy.contains("Users in role")
.click()
.get("#users-empty-state > div > h4")
.contains("No direct users");
.get('[data-test-id="users-page"]')
.should('exist')
});
});
});

View file

@ -18,7 +18,6 @@ export type Action = {
};
export type ListEmptyStateProps = {
id?: string;
message: string;
instructions: string;
primaryActionText?: string;
@ -29,7 +28,6 @@ export type ListEmptyStateProps = {
};
export const ListEmptyState = ({
id,
message,
instructions,
onPrimaryAction,
@ -40,7 +38,7 @@ export const ListEmptyState = ({
}: ListEmptyStateProps) => {
return (
<>
<EmptyState id={id} variant="large">
<EmptyState variant="large">
{hasIcon && isSearchVariant ? (
<EmptyStateIcon icon={SearchIcon} />
) : (

View file

@ -32,13 +32,12 @@ export const UsersInRoleTab = () => {
return (
<>
<PageSection variant="light">
<PageSection data-test-id="users-page" variant="light">
{users.length == 0 ? (
<ListEmptyState
hasIcon={true}
message={t("noDirectUsers")}
instructions={t("noUsersEmptyStateDescription")}
id="users-empty-state"
/>
) : (
<KeycloakDataTable