From 4cf460f4dfc185c6b9f2f0fffdcbc766d4b5e5eb Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Thu, 3 Mar 2022 08:45:44 +0100 Subject: [PATCH] fixed async role creation bug (#2180) --- cypress/integration/realm_roles_test.spec.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cypress/integration/realm_roles_test.spec.ts b/cypress/integration/realm_roles_test.spec.ts index 06c0d00a19..cf9ba4bf94 100644 --- a/cypress/integration/realm_roles_test.spec.ts +++ b/cypress/integration/realm_roles_test.spec.ts @@ -110,16 +110,14 @@ describe("Realm roles test", () => { describe("edit role details", () => { const editRoleName = "going to edit"; const description = "some description"; - before(() => { + before(() => adminClient.createRealmRole({ name: editRoleName, description, - }); - }); + }) + ); - after(() => { - adminClient.deleteRealmRole(editRoleName); - }); + after(() => adminClient.deleteRealmRole(editRoleName)); it("should edit realm role details", () => { listingPage.itemExist(editRoleName).goToItemDetails(editRoleName);