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:
parent
168400f71c
commit
6ba716cbed
5 changed files with 7 additions and 7 deletions
|
@ -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();
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -323,7 +323,7 @@ export function UserDataTable() {
|
|||
<DeleteConfirm />
|
||||
<UnlockUsersConfirm />
|
||||
<KeycloakDataTable
|
||||
isSearching
|
||||
isSearching={searchUser !== "" || activeFilters.length !== 0}
|
||||
key={key}
|
||||
loader={loader}
|
||||
isPaginated
|
||||
|
|
|
@ -109,6 +109,7 @@ export function UserDataTableToolbarItems({
|
|||
}}
|
||||
onClear={() => {
|
||||
setSearchUser("");
|
||||
refresh();
|
||||
}}
|
||||
/>
|
||||
</ToolbarItem>
|
||||
|
|
Loading…
Reference in a new issue