diff --git a/cypress/e2e/realm_test.spec.ts b/cypress/e2e/realm_test.spec.ts index 29fb0b77cd..681f48d12b 100644 --- a/cypress/e2e/realm_test.spec.ts +++ b/cypress/e2e/realm_test.spec.ts @@ -86,9 +86,8 @@ describe("Realm tests", () => { cy.findByText("Delete").click(); modalUtils.confirmModal(); masthead.checkNotificationMessage("The realm has been deleted"); - }); - it("Should update realms on delete", () => { + // Show current realms sidebarPage.showCurrentRealms(2); }); @@ -109,9 +108,8 @@ describe("Realm tests", () => { masthead.checkNotificationMessage("Realm created"); cy.wait(["@fetch"]); - }); - it("Should show current realms", () => { + // Show current realms sidebarPage.showCurrentRealms(4); }); diff --git a/cypress/e2e/user_fed_ldap_test.spec.ts b/cypress/e2e/user_fed_ldap_test.spec.ts index 7d46da6308..1ef4e91146 100644 --- a/cypress/e2e/user_fed_ldap_test.spec.ts +++ b/cypress/e2e/user_fed_ldap_test.spec.ts @@ -88,6 +88,10 @@ const deletedSuccessMessage = "The user federation provider has been deleted."; const deleteModalTitle = "Delete user federation provider?"; const disableModalTitle = "Disable user federation provider?"; const nonWritableFailMessage = "User federation provider could not be saved:"; +const validatePasswordPolicyFailMessage = + "User federation provider could not be saved: Validate Password Policy is applicable only with WRITABLE edit mode"; +const userImportingDisabledFailMessage = + "User federation provider could not be saved: Can not disable Importing users when LDAP provider mode is UNSYNCED"; const ldapTestSuccessMsg = "Successfully connected to LDAP"; const ldapTestFailMsg = @@ -427,8 +431,19 @@ describe("User Federation LDAP tests", () => { providersPage.clickExistingCard(firstLdapName); providersPage.fillSelect(providersPage.ldapEditModeInput, editModeUnsynced); + + providersPage.toggleSwitch(providersPage.importUsers); + + providersPage.save(provider); + masthead.checkNotificationMessage(validatePasswordPolicyFailMessage); + providersPage.toggleSwitch(providersPage.importUsers); providersPage.toggleSwitch(providersPage.validatePwPolicySwitch); + providersPage.save(provider); + + masthead.checkNotificationMessage(userImportingDisabledFailMessage); + + providersPage.toggleSwitch(providersPage.importUsers); providersPage.save(provider); masthead.checkNotificationMessage(savedSuccessMessage);