Skip to content

Commit

Permalink
wait for export to be complete
Browse files Browse the repository at this point in the history
fixes: keycloak#35664
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit committed Dec 6, 2024
1 parent ba93c1b commit ad2a4ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/apps/admin-ui/cypress/e2e/partial_export_test.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ describe("Partial realm export", () => {
it("Exports the realm", () => {
modal.includeGroupsAndRolesSwitch().click({ force: true });
modal.includeClientsSwitch().click({ force: true });
cy.intercept(
"POST",
"/admin/realms/Partial-export-test-realm/partial-export*",
).as("export");
modal.exportButton().click();
cy.wait("@export");

cy.readFile(
Cypress.config("downloadsFolder") + "/realm-export.json",
).should("exist");
Expand Down

0 comments on commit ad2a4ef

Please sign in to comment.