stabilize realm setting test (#30038)

fixes: #29468

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-06-11 14:29:08 +02:00 committed by GitHub
parent 80212985a5
commit d10b331e1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,12 +49,9 @@ describe("Realm settings general tab tests", () => {
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
// Disable realm // Disable realm
const loadName = `load-disabled-${uuid()}`;
cy.intercept({ path: "/admin/realms/*", times: 1 }).as(loadName);
realmSettingsPage.toggleSwitch(`${realmName}-switch`, false); realmSettingsPage.toggleSwitch(`${realmName}-switch`, false);
realmSettingsPage.disableRealm(); realmSettingsPage.disableRealm();
masthead.checkNotificationMessage("Realm successfully updated", true); masthead.checkNotificationMessage("Realm successfully updated", true);
cy.wait(`@${loadName}`);
sidebarPage.waitForPageLoad(); sidebarPage.waitForPageLoad();
// Re-enable realm // Re-enable realm