Skip to content

Commit

Permalink
added wait for group to load (keycloak#34814)
Browse files Browse the repository at this point in the history
fixes: keycloak#34605

Signed-off-by: Erik Jan de Wit <[email protected]>
(cherry picked from commit 6a46667)
  • Loading branch information
edewit committed Dec 11, 2024
1 parent e96ffa1 commit c79446a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion js/apps/admin-ui/cypress/e2e/group_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe("Group test", () => {

it.skip("Duplicate group", () => {
groupPage
.duplicateGroupItem(groupNames[0], true)
.duplicateGroupItem(groupNames[0])
.assertNotificationGroupDuplicated();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ export default class GroupPage extends PageObject {
return this;
}

duplicateGroupItem(groupName: string, confirmModal = true) {
duplicateGroupItem(groupName: string) {
cy.intercept("/admin/realms/master/groups/*").as("fetchGroup");
listingPage.duplicateItem(groupName);
if (confirmModal) {
groupModal.confirmDuplicateModal();
}
cy.wait("@fetchGroup");
groupModal.confirmDuplicateModal();
return this;
}

Expand Down
2 changes: 1 addition & 1 deletion js/apps/admin-ui/src/authentication/execution-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ExecutionList {
return ex;
}
current.index++;
if (ex.executionList) {
if (ex.executionList && !ex.isCollapsed) {
const found = this.findExecution(index, current, ex.executionList);
if (found) {
return found;
Expand Down
2 changes: 1 addition & 1 deletion js/apps/admin-ui/src/groups/components/GroupTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const GroupTreeContextMenu = ({
<DropdownItem key="create" onClick={toggleCreateOpen}>
{t("createChildGroup")}
</DropdownItem>
<Divider key="separator" />,
<Divider key="separator" />
<DropdownItem key="delete" onClick={toggleDeleteOpen}>
{t("delete")}
</DropdownItem>
Expand Down

0 comments on commit c79446a

Please sign in to comment.