From f9d727678a73bfa3d759709f18210424568ebd85 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Fri, 15 Nov 2024 15:26:28 +0100 Subject: [PATCH] trying to make general test switch less flaky Signed-off-by: Erik Jan de Wit #34751 --- .../cypress/e2e/realm_settings_general_tab_test.spec.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts b/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts index 96bb2086d0cd..8807872f1f79 100644 --- a/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts +++ b/js/apps/admin-ui/cypress/e2e/realm_settings_general_tab_test.spec.ts @@ -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", () => {