Skip to content

Commit

Permalink
trying to make general test switch less flaky
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Jan de Wit <[email protected]>

keycloak#34751
  • Loading branch information
edewit committed Nov 18, 2024
1 parent 837fbf8 commit f9d7276
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,13 @@ describe("Realm settings general tab tests", () => {

// Enable realm
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
masthead.checkNotificationMessage("Realm successfully updated");
sidebarPage.waitForPageLoad();
masthead.checkNotificationMessage("Realm successfully updated", true);
realmSettingsPage.assertSwitch(`${realmName}-switch`, true);

// Disable realm
realmSettingsPage.toggleSwitch(`${realmName}-switch`, false);
realmSettingsPage.disableRealm();
masthead.checkNotificationMessage("Realm successfully updated", true);
sidebarPage.waitForPageLoad();

// Re-enable realm
realmSettingsPage.toggleSwitch(`${realmName}-switch`);
masthead.checkNotificationMessage("Realm successfully updated");
});

it("Fail to set Realm ID to empty", () => {
Expand Down

0 comments on commit f9d7276

Please sign in to comment.