Skip to content

Commit

Permalink
added wait for group to load
Browse files Browse the repository at this point in the history
fixes: keycloak#34605
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Nov 11, 2024
1 parent b86c3c6 commit 1e0f144
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions js/apps/admin-ui/cypress/e2e/group_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ describe("Group test", () => {
.assertNoSearchResultsMessageExist(true);
});

it.skip("Duplicate group from item bar", () => {
it("Duplicate group from item bar", () => {
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 1e0f144

Please sign in to comment.