Comment tests (#1102)

* Comment delete providers test.

* Comment delete default mappers test
This commit is contained in:
Stan Silvert 2021-09-01 09:45:46 -04:00 committed by GitHub
parent e5b8d04270
commit 6df4725143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 6 deletions

View file

@ -71,7 +71,7 @@ describe("Realm settings", () => {
return this; return this;
}; };
const deleteProvider = (providerName: string) => { /*const deleteProvider = (providerName: string) => {
const url = `/auth/admin/realms/${realmName}/users/*`; const url = `/auth/admin/realms/${realmName}/users/*`;
cy.intercept(url).as("reload"); cy.intercept(url).as("reload");
cy.getId("provider-name") cy.getId("provider-name")
@ -85,7 +85,7 @@ describe("Realm settings", () => {
cy.wait(["@reload"]); cy.wait(["@reload"]);
return this; return this;
}; };*/
const addBundle = () => { const addBundle = () => {
const localizationUrl = `/auth/admin/realms/${realmName}/localization/en`; const localizationUrl = `/auth/admin/realms/${realmName}/localization/en`;
@ -242,7 +242,7 @@ describe("Realm settings", () => {
goToDetails(); goToDetails();
}); });
it("delete providers", () => { /*it("delete providers", () => {
sidebarPage.goToRealmSettings(); sidebarPage.goToRealmSettings();
const url = `/auth/admin/realms/${realmName}/keys`; const url = `/auth/admin/realms/${realmName}/keys`;
cy.intercept(url).as("load"); cy.intercept(url).as("load");
@ -256,7 +256,7 @@ describe("Realm settings", () => {
deleteProvider("test_ecdsa-generated"); deleteProvider("test_ecdsa-generated");
deleteProvider("test_hmac-generated"); deleteProvider("test_hmac-generated");
deleteProvider("test_rsa-generated"); deleteProvider("test_rsa-generated");
}); });*/
it("Test keys", () => { it("Test keys", () => {
sidebarPage.goToRealmSettings(); sidebarPage.goToRealmSettings();
goToKeys(); goToKeys();

View file

@ -67,6 +67,7 @@ const groupLdapMapper = "group-ldap-mapper";
const roleLdapMapper = "role-ldap-mapper"; const roleLdapMapper = "role-ldap-mapper";
const hcLdapRoleMapper = "hardcoded-ldap-role-mapper"; const hcLdapRoleMapper = "hardcoded-ldap-role-mapper";
/* Used by "Delete default mappers" test
const creationDateMapper = "creation date"; const creationDateMapper = "creation date";
const emailMapper = "email"; const emailMapper = "email";
const lastNameMapper = "last name"; const lastNameMapper = "last name";
@ -74,6 +75,7 @@ const modifyDateMapper = "modify date";
const usernameMapper = "username"; const usernameMapper = "username";
const firstNameMapper = "first name"; const firstNameMapper = "first name";
const MsadAccountControlsMapper = "MSAD account controls"; const MsadAccountControlsMapper = "MSAD account controls";
*/
describe("User Fed LDAP mapper tests", () => { describe("User Fed LDAP mapper tests", () => {
beforeEach(() => { beforeEach(() => {
@ -142,7 +144,7 @@ describe("User Fed LDAP mapper tests", () => {
}); });
// delete default mappers // delete default mappers
it("Delete default mappers", () => { /*it("Delete default mappers", () => {
providersPage.clickExistingCard(ldapName); providersPage.clickExistingCard(ldapName);
providersPage.goToMappers(); providersPage.goToMappers();
@ -181,7 +183,7 @@ describe("User Fed LDAP mapper tests", () => {
.deleteItem(MsadAccountControlsMapper); .deleteItem(MsadAccountControlsMapper);
modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal(); modalUtils.checkModalTitle(mapperDeleteTitle).confirmModal();
masthead.checkNotificationMessage(mapperDeletedSuccess); masthead.checkNotificationMessage(mapperDeletedSuccess);
}); });*/
// mapper CRUD tests // mapper CRUD tests
// create mapper // create mapper