2023-06-20 12:21:49 +00:00
|
|
|
import { v4 as uuid } from "uuid";
|
2022-12-07 15:28:28 +00:00
|
|
|
import SidebarPage from "../support/pages/admin-ui/SidebarPage";
|
2021-12-06 10:50:29 +00:00
|
|
|
import LoginPage from "../support/pages/LoginPage";
|
2022-12-07 15:28:28 +00:00
|
|
|
import RealmSettingsPage from "../support/pages/admin-ui/manage/realm_settings/RealmSettingsPage";
|
|
|
|
import Masthead from "../support/pages/admin-ui/Masthead";
|
2022-01-07 07:27:58 +00:00
|
|
|
import { keycloakBefore } from "../support/util/keycloak_hooks";
|
2022-02-24 10:31:46 +00:00
|
|
|
import adminClient from "../support/util/AdminClient";
|
2023-03-30 08:44:36 +00:00
|
|
|
import KeysTab from "../support/pages/admin-ui/manage/realm_settings/KeysTab";
|
|
|
|
import ModalUtils from "../support/util/ModalUtils";
|
|
|
|
import UserRegistration from "../support/pages/admin-ui/manage/realm_settings/UserRegistration";
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
const loginPage = new LoginPage();
|
|
|
|
const sidebarPage = new SidebarPage();
|
|
|
|
const masthead = new Masthead();
|
|
|
|
const realmSettingsPage = new RealmSettingsPage();
|
2023-03-30 08:44:36 +00:00
|
|
|
const userRegistration = new UserRegistration();
|
|
|
|
const keysTab = new KeysTab();
|
|
|
|
const modalUtils = new ModalUtils();
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
describe("Realm settings tabs tests", () => {
|
2023-06-20 12:21:49 +00:00
|
|
|
const realmName = "Realm_" + uuid();
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
loginPage.logIn();
|
2023-02-10 10:10:35 +00:00
|
|
|
keycloakBefore();
|
2021-12-06 10:50:29 +00:00
|
|
|
sidebarPage.goToRealm(realmName);
|
|
|
|
});
|
|
|
|
|
|
|
|
before(async () => {
|
2022-02-24 10:31:46 +00:00
|
|
|
await adminClient.createRealm(realmName);
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
after(async () => {
|
2022-02-24 10:31:46 +00:00
|
|
|
await adminClient.deleteRealm(realmName);
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
2024-01-08 14:03:26 +00:00
|
|
|
const addBundle = () => {
|
|
|
|
realmSettingsPage.addKeyValuePair("123", "abc");
|
|
|
|
|
|
|
|
return this;
|
|
|
|
};
|
|
|
|
|
2023-12-19 08:25:54 +00:00
|
|
|
it("shows the 'user profile' tab", () => {
|
2022-01-03 15:00:03 +00:00
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
cy.findByTestId(realmSettingsPage.userProfileTab).should("exist");
|
|
|
|
});
|
|
|
|
|
2022-06-24 11:31:02 +00:00
|
|
|
// Clicking multiple toggles in succession causes quick re-renderings of the screen
|
|
|
|
// and there will be a noticeable flicker during the test.
|
|
|
|
// Sometimes, this will screw up the test and cause Cypress to hang.
|
|
|
|
// Clicking to another section each time fixes the problem.
|
|
|
|
function reloadRealm() {
|
|
|
|
sidebarPage.goToClientScopes();
|
2021-12-06 10:50:29 +00:00
|
|
|
sidebarPage.goToRealmSettings();
|
2023-03-30 08:44:36 +00:00
|
|
|
realmSettingsPage.goToLoginTab();
|
2022-06-24 11:31:02 +00:00
|
|
|
}
|
2022-03-28 15:34:07 +00:00
|
|
|
|
2022-06-24 11:31:02 +00:00
|
|
|
function testToggle(realmSwitch: string, expectedValue: string) {
|
|
|
|
realmSettingsPage.toggleSwitch(realmSwitch);
|
|
|
|
reloadRealm();
|
|
|
|
cy.findByTestId(realmSwitch).should("have.value", expectedValue);
|
|
|
|
}
|
2022-03-28 15:34:07 +00:00
|
|
|
|
2022-06-24 11:31:02 +00:00
|
|
|
it("Go to login tab", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
2023-03-30 08:44:36 +00:00
|
|
|
realmSettingsPage.goToLoginTab();
|
2021-12-06 10:50:29 +00:00
|
|
|
|
2022-06-24 11:31:02 +00:00
|
|
|
testToggle(realmSettingsPage.userRegSwitch, "on");
|
|
|
|
testToggle(realmSettingsPage.forgotPwdSwitch, "on");
|
|
|
|
testToggle(realmSettingsPage.rememberMeSwitch, "on");
|
|
|
|
testToggle(realmSettingsPage.loginWithEmailSwitch, "off");
|
|
|
|
testToggle(realmSettingsPage.duplicateEmailsSwitch, "on");
|
2021-12-06 10:50:29 +00:00
|
|
|
|
2022-06-24 11:31:02 +00:00
|
|
|
// Check other values
|
2022-03-28 15:34:07 +00:00
|
|
|
cy.findByTestId(realmSettingsPage.emailAsUsernameSwitch).should(
|
|
|
|
"have.value",
|
2023-07-11 14:03:21 +00:00
|
|
|
"off",
|
2022-03-28 15:34:07 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
cy.findByTestId(realmSettingsPage.verifyEmailSwitch).should(
|
|
|
|
"have.value",
|
2023-07-11 14:03:21 +00:00
|
|
|
"off",
|
2022-03-28 15:34:07 +00:00
|
|
|
);
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Go to email tab", () => {
|
2022-10-24 11:43:46 +00:00
|
|
|
// Configure an e-mail address so we can test the connection settings.
|
|
|
|
cy.wrap(null).then(async () => {
|
|
|
|
const adminUser = await adminClient.getAdminUser();
|
|
|
|
|
|
|
|
await adminClient.updateUser(adminUser.id!, {
|
|
|
|
email: "admin@example.com",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2021-12-06 10:50:29 +00:00
|
|
|
sidebarPage.goToRealmSettings();
|
2023-03-30 08:44:36 +00:00
|
|
|
realmSettingsPage.goToEmailTab();
|
2022-10-17 10:08:49 +00:00
|
|
|
//required fields not filled in or not filled properly
|
|
|
|
realmSettingsPage.addSenderEmail("not a valid email");
|
|
|
|
realmSettingsPage.fillFromDisplayName("displayName");
|
|
|
|
realmSettingsPage.fillReplyToEmail("replyTo@email.com");
|
|
|
|
realmSettingsPage.fillPort("10");
|
|
|
|
cy.findByTestId("email-tab-save").click();
|
2024-03-13 11:05:54 +00:00
|
|
|
cy.get("#smtpServer\\.from-helper").contains(
|
|
|
|
"You must enter a valid email.",
|
|
|
|
);
|
|
|
|
cy.get("#smtpServer\\.host-helper").contains("Required field");
|
2022-12-15 12:10:06 +00:00
|
|
|
|
2022-10-17 10:08:49 +00:00
|
|
|
cy.findByTestId("email-tab-revert").click();
|
2024-03-13 11:05:54 +00:00
|
|
|
cy.findByTestId("smtpServer.from").should("be.empty");
|
|
|
|
cy.findByTestId("smtpServer.fromDisplayName").should("be.empty");
|
|
|
|
cy.findByTestId("smtpServer.port").should("be.empty");
|
2022-10-17 10:08:49 +00:00
|
|
|
|
2021-12-06 10:50:29 +00:00
|
|
|
realmSettingsPage.addSenderEmail("example@example.com");
|
|
|
|
realmSettingsPage.toggleCheck(realmSettingsPage.enableSslCheck);
|
|
|
|
realmSettingsPage.toggleCheck(realmSettingsPage.enableStartTlsCheck);
|
|
|
|
realmSettingsPage.fillHostField("localhost");
|
|
|
|
|
2022-10-24 11:43:46 +00:00
|
|
|
cy.findByTestId(realmSettingsPage.testConnectionButton).click();
|
2022-10-17 10:08:49 +00:00
|
|
|
|
2022-10-24 11:43:46 +00:00
|
|
|
masthead.checkNotificationMessage("Error! Failed to send email", true);
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Go to themes tab", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
cy.findByTestId("rs-themes-tab").click();
|
|
|
|
|
|
|
|
realmSettingsPage.selectLoginThemeType("keycloak");
|
|
|
|
realmSettingsPage.selectAccountThemeType("keycloak");
|
|
|
|
realmSettingsPage.selectEmailThemeType("base");
|
|
|
|
|
|
|
|
realmSettingsPage.saveThemes();
|
|
|
|
});
|
2023-03-30 08:44:36 +00:00
|
|
|
|
2023-12-12 10:42:39 +00:00
|
|
|
describe("Go to security defenses tab", () => {
|
|
|
|
it("Realm header settings- update single input", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToSecurityDefensesTab();
|
|
|
|
cy.get("#xFrameOptions").clear().type("DENY");
|
|
|
|
realmSettingsPage.saveSecurityDefensesHeaders();
|
|
|
|
masthead.checkNotificationMessage("Realm successfully updated");
|
|
|
|
});
|
2024-02-19 01:09:22 +00:00
|
|
|
|
2023-12-12 10:42:39 +00:00
|
|
|
it("Realm header settings- update all inputs", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToSecurityDefensesTab();
|
|
|
|
cy.get("#xFrameOptions").clear().type("SAMEORIGIN");
|
|
|
|
cy.get("#contentSecurityPolicy").clear().type("default-src 'self'");
|
|
|
|
cy.get("#strictTransportSecurity").clear().type("max-age=31536000");
|
|
|
|
cy.get("#xContentTypeOptions").clear().type("nosniff");
|
|
|
|
cy.get("#xRobotsTag").clear().type("none");
|
|
|
|
cy.get("#xXSSProtection").clear().type("1; mode=block");
|
|
|
|
cy.get("#strictTransportSecurity").clear().type("max-age=31537000");
|
|
|
|
cy.get("#referrerPolicy").clear().type("referrer");
|
|
|
|
realmSettingsPage.saveSecurityDefensesHeaders();
|
|
|
|
masthead.checkNotificationMessage("Realm successfully updated");
|
|
|
|
});
|
2024-02-19 01:09:22 +00:00
|
|
|
|
2023-12-12 10:42:39 +00:00
|
|
|
it("Brute force detection- update values", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToSecurityDefensesTab();
|
|
|
|
realmSettingsPage.goToSecurityDefensesBruteForceTab();
|
2024-01-15 06:40:20 +00:00
|
|
|
cy.get("#kc-brute-force-mode").click();
|
|
|
|
cy.findByTestId("select-brute-force-mode")
|
|
|
|
.contains("Lockout temporarily")
|
|
|
|
.click();
|
2023-12-12 10:42:39 +00:00
|
|
|
cy.findByTestId("waitIncrementSeconds").type("1");
|
|
|
|
cy.findByTestId("maxFailureWaitSeconds").type("1");
|
|
|
|
cy.findByTestId("maxDeltaTimeSeconds").type("1");
|
|
|
|
cy.findByTestId("minimumQuickLoginWaitSeconds").type("1");
|
|
|
|
realmSettingsPage.saveSecurityDefensesBruteForce();
|
|
|
|
masthead.checkNotificationMessage("Realm successfully updated");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2024-01-08 14:03:26 +00:00
|
|
|
describe("Go to localization tab", () => {
|
|
|
|
it("Locales tab - Add locale", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationLocalesSubTab();
|
|
|
|
|
|
|
|
cy.findByTestId("internationalization-disabled").click({ force: true });
|
|
|
|
|
|
|
|
cy.get(realmSettingsPage.supportedLocalesTypeahead)
|
|
|
|
.click()
|
|
|
|
.get(".pf-c-select__menu-item")
|
|
|
|
.contains("Danish")
|
|
|
|
.click();
|
|
|
|
cy.get("#kc-l-supported-locales").click();
|
|
|
|
|
|
|
|
cy.intercept("GET", `/admin/realms/${realmName}/localization/en*`).as(
|
|
|
|
"load",
|
|
|
|
);
|
|
|
|
|
|
|
|
cy.findByTestId("localization-tab-save").click();
|
|
|
|
cy.wait("@load");
|
|
|
|
|
|
|
|
masthead.checkNotificationMessage("Realm successfully updated");
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Realm Overrides - Add and delete bundle", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationRealmOverridesSubTab();
|
|
|
|
|
|
|
|
addBundle();
|
|
|
|
|
|
|
|
masthead.checkNotificationMessage(
|
2024-02-01 10:54:26 +00:00
|
|
|
"Success! The translation has been added.",
|
2024-01-08 14:03:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
cy.findByTestId("editable-rows-table")
|
|
|
|
.contains("td", "123")
|
|
|
|
.should("be.visible");
|
|
|
|
|
2024-01-16 12:24:26 +00:00
|
|
|
cy.get('td.pf-c-table__action button[aria-label="Actions"]').click();
|
|
|
|
cy.contains("button", "Delete").click();
|
2024-01-08 14:03:26 +00:00
|
|
|
cy.findByTestId("confirm").click();
|
2024-02-01 10:54:26 +00:00
|
|
|
masthead.checkNotificationMessage("Successfully removed translation(s).");
|
2024-01-08 14:03:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Realm Overrides - Search for and delete bundle", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationRealmOverridesSubTab();
|
|
|
|
|
|
|
|
addBundle();
|
|
|
|
|
|
|
|
cy.get('input[aria-label="Search"]').type("123");
|
|
|
|
|
|
|
|
cy.findByTestId("editable-rows-table")
|
|
|
|
.contains("td", "123")
|
|
|
|
.should("be.visible");
|
|
|
|
|
|
|
|
cy.findByTestId("selectAll").click();
|
|
|
|
cy.get('[data-testid="toolbar-deleteBtn"] button').click();
|
2024-02-01 10:54:26 +00:00
|
|
|
cy.findByTestId("delete-selected-TranslationBtn").click();
|
2024-01-08 14:03:26 +00:00
|
|
|
cy.findByTestId("confirm").click();
|
2024-02-01 10:54:26 +00:00
|
|
|
masthead.checkNotificationMessage("Successfully removed translation(s).");
|
2024-01-08 14:03:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Realm Overrides - Edit and cancel edit message bundle", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationRealmOverridesSubTab();
|
|
|
|
|
|
|
|
addBundle();
|
|
|
|
|
2024-01-22 13:04:27 +00:00
|
|
|
cy.findByTestId("editTranslationBtn-0").click();
|
|
|
|
cy.findByTestId("editTranslationCancelBtn-0").click();
|
2024-01-08 14:03:26 +00:00
|
|
|
|
2024-01-22 13:04:27 +00:00
|
|
|
cy.findByTestId("editTranslationBtn-0").click();
|
|
|
|
cy.findByTestId("editTranslationValueInput-0")
|
|
|
|
.click()
|
|
|
|
.clear()
|
|
|
|
.type("def");
|
|
|
|
cy.findByTestId("editTranslationAcceptBtn-0").click();
|
2024-01-08 14:03:26 +00:00
|
|
|
|
|
|
|
cy.findByTestId("editable-rows-table")
|
|
|
|
.contains("td", "def")
|
|
|
|
.should("be.visible");
|
|
|
|
|
2024-01-16 12:24:26 +00:00
|
|
|
cy.get('td.pf-c-table__action button[aria-label="Actions"]').click();
|
|
|
|
cy.contains("button", "Delete").click();
|
2024-01-08 14:03:26 +00:00
|
|
|
cy.findByTestId("confirm").click();
|
|
|
|
|
2024-02-01 10:54:26 +00:00
|
|
|
masthead.checkNotificationMessage("Successfully removed translation(s).");
|
2024-01-08 14:03:26 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("Effective Message Bundles - Check before search message", () => {
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationEffectiveMessageBundlesSubTab();
|
|
|
|
cy.contains("h1", "Search for effective messages");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2023-03-30 08:44:36 +00:00
|
|
|
describe("Accessibility tests for realm settings", () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
loginPage.logIn();
|
|
|
|
keycloakBefore();
|
|
|
|
sidebarPage.goToRealmSettings();
|
|
|
|
cy.injectAxe();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on load/ realm settings/ general tab", () => {
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on login tab", () => {
|
|
|
|
realmSettingsPage.goToLoginTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on email tab", () => {
|
|
|
|
realmSettingsPage.goToEmailTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on themes tab", () => {
|
|
|
|
realmSettingsPage.goToThemesTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on keys tab/ keys list sub tab", () => {
|
|
|
|
keysTab.goToKeysTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on keys tab/ providers sub tab", () => {
|
|
|
|
keysTab.goToProvidersTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on keys tab/ providers sub tab / adding provider", () => {
|
|
|
|
keysTab.goToProvidersTab();
|
|
|
|
cy.findByTestId("addProviderDropdown").click();
|
|
|
|
cy.checkA11y();
|
|
|
|
modalUtils.closeModal();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on events tab/ event listeners sub tab", () => {
|
|
|
|
realmSettingsPage.goToEventsTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on events tab/ user events settings sub tab", () => {
|
|
|
|
realmSettingsPage.goToEventsTab().goToUserEventsSettingsSubTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on events tab/ admin events settings sub tab", () => {
|
|
|
|
realmSettingsPage.goToEventsTab().goToAdminEventsSettingsSubTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
2024-01-08 14:03:26 +00:00
|
|
|
it("Check a11y violations on localization locales sub tab", () => {
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationLocalesSubTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on localization realm overrides sub tab", () => {
|
2023-03-30 08:44:36 +00:00
|
|
|
realmSettingsPage.goToLocalizationTab();
|
2024-01-08 14:03:26 +00:00
|
|
|
realmSettingsPage.goToLocalizationRealmOverridesSubTab();
|
2023-03-30 08:44:36 +00:00
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
2024-01-08 14:03:26 +00:00
|
|
|
it("Check a11y violations on localization realm overrides sub tab/ adding message bundle", () => {
|
2023-03-30 08:44:36 +00:00
|
|
|
realmSettingsPage.goToLocalizationTab();
|
2024-01-08 14:03:26 +00:00
|
|
|
realmSettingsPage.goToLocalizationRealmOverridesSubTab();
|
2024-01-16 12:24:26 +00:00
|
|
|
cy.findByTestId("add-translationBtn").click();
|
2023-03-30 08:44:36 +00:00
|
|
|
cy.checkA11y();
|
|
|
|
modalUtils.cancelModal();
|
|
|
|
});
|
|
|
|
|
2024-01-08 14:03:26 +00:00
|
|
|
it("Check a11y violations on localization effective message bundles sub tab", () => {
|
|
|
|
realmSettingsPage.goToLocalizationTab();
|
|
|
|
realmSettingsPage.goToLocalizationEffectiveMessageBundlesSubTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
2023-03-30 08:44:36 +00:00
|
|
|
it("Check a11y violations on security defenses tab", () => {
|
|
|
|
realmSettingsPage.goToSecurityDefensesTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on sessions tab", () => {
|
|
|
|
realmSettingsPage.goToSessionsTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on tokens tab", () => {
|
|
|
|
realmSettingsPage.goToTokensTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on client policies tab/ profiles sub tab", () => {
|
|
|
|
realmSettingsPage.goToClientPoliciesTab().goToClientProfilesList();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on client policies tab/ creating profile", () => {
|
|
|
|
realmSettingsPage.goToClientPoliciesTab().goToClientProfilesList();
|
|
|
|
cy.findByTestId("createProfile").click();
|
|
|
|
cy.checkA11y();
|
|
|
|
cy.findByTestId("cancelCreateProfile").click();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on client policies tab/ policies sub tab", () => {
|
|
|
|
realmSettingsPage.goToClientPoliciesTab().goToClientPoliciesList();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on client policies tab/ creating policy", () => {
|
|
|
|
realmSettingsPage.goToClientPoliciesTab().goToClientPoliciesList();
|
|
|
|
cy.findByTestId("no-client-policies-empty-action").click();
|
|
|
|
cy.checkA11y();
|
|
|
|
cy.findByTestId("cancelCreatePolicy").click();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on user registration tab/ default roles sub tab", () => {
|
|
|
|
userRegistration.goToTab();
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on user registration tab/ default roles sub tab/ assigning role", () => {
|
|
|
|
userRegistration.goToTab();
|
|
|
|
cy.findByTestId("assignRole").click();
|
|
|
|
cy.checkA11y();
|
|
|
|
modalUtils.cancelModal();
|
|
|
|
});
|
|
|
|
});
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|