more waits to stabilize test (#28092)
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
parent
d5bf79b932
commit
6ede747871
2 changed files with 3 additions and 5 deletions
Binary file not shown.
|
@ -45,16 +45,14 @@ describe("Realm settings general tab tests", () => {
|
||||||
|
|
||||||
// Enable realm
|
// Enable realm
|
||||||
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
||||||
masthead.checkNotificationMessage("Realm successfully updated", true);
|
masthead.checkNotificationMessage("Realm successfully updated");
|
||||||
|
sidebarPage.waitForPageLoad();
|
||||||
|
|
||||||
// Disable realm
|
// Disable realm
|
||||||
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
||||||
realmSettingsPage.disableRealm();
|
realmSettingsPage.disableRealm();
|
||||||
masthead.checkNotificationMessage("Realm successfully updated", true);
|
masthead.checkNotificationMessage("Realm successfully updated", true);
|
||||||
|
sidebarPage.waitForPageLoad();
|
||||||
// Sometimes it takes the Keycloak server a while to disable the realm, even though the notification message has been displayed.
|
|
||||||
// To prevent flaky tests, we wait a second before continuing.
|
|
||||||
cy.wait(1000);
|
|
||||||
|
|
||||||
// Re-enable realm
|
// Re-enable realm
|
||||||
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
|
||||||
|
|
Loading…
Reference in a new issue