set the searching state when we actually are (#24499)

* set the searching state when we actually are

fixes: #24430
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Update js/apps/admin-ui/maven-resources/theme/keycloak.v2/admin/messages/messages_en.properties

Co-authored-by: Jon Koops <jonkoops@gmail.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
Erik Jan de Wit 2023-12-07 12:06:23 +01:00 committed by GitHub
parent 168400f71c
commit 6ba716cbed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View file

@ -170,6 +170,7 @@ describe("User profile tabs", () => {
cy.findByTestId("edit-username-switch").should("have.value", "off");
// Create user
sidebarPage.goToUsers();
cy.wait(1000);
createUserPage.goToCreateUser();
cy.findByTestId("username").type("testuser7");
cy.findByTestId("create-user").click();

View file

@ -2,7 +2,6 @@ export default class CreateUserPage {
usernameInput: string;
usersEmptyState: string;
emptyStateCreateUserBtn: string;
searchPgCreateUserBtn: string;
addUserBtn: string;
joinGroupsBtn: string;
joinBtn: string;
@ -14,7 +13,6 @@ export default class CreateUserPage {
this.usersEmptyState = "empty-state";
this.emptyStateCreateUserBtn = "no-users-found-empty-action";
this.searchPgCreateUserBtn = "create-new-user";
this.addUserBtn = "add-user";
this.joinGroupsBtn = "join-groups-button";
this.joinBtn = "join-button";
@ -35,10 +33,10 @@ export default class CreateUserPage {
goToCreateUser() {
cy.get("body").then((body) => {
if (body.find("[data-testid=search-users-title]").length > 0) {
cy.findByTestId(this.searchPgCreateUserBtn).click({ force: true });
} else {
if (body.find(`[data-testid=${this.addUserBtn}]`).length > 0) {
cy.findByTestId(this.addUserBtn).click({ force: true });
} else {
cy.findByTestId(this.emptyStateCreateUserBtn).click({ force: true });
}
});

View file

@ -321,7 +321,7 @@ exportWarningTitle=Export with caution
emailVerifiedHelp=Has the user's email been verified?
duplicateFlow=Duplicate flow
addExecution=Add execution
noSearchResultsInstructions=Click on the search bar above to search for groups
noSearchResultsInstructions=Click on the search bar above to search again
addedNodeFail=Could not add node\: '{{error}}'
groupMembership=Group membership
maxLength=Max length {{length}}

View file

@ -323,7 +323,7 @@ export function UserDataTable() {
<DeleteConfirm />
<UnlockUsersConfirm />
<KeycloakDataTable
isSearching
isSearching={searchUser !== "" || activeFilters.length !== 0}
key={key}
loader={loader}
isPaginated

View file

@ -109,6 +109,7 @@ export function UserDataTableToolbarItems({
}}
onClear={() => {
setSearchUser("");
refresh();
}}
/>
</ToolbarItem>