2022-12-07 15:28:28 +00:00
|
|
|
import Masthead from "../support/pages/admin-ui/Masthead";
|
|
|
|
import SidebarPage from "../support/pages/admin-ui/SidebarPage";
|
2021-12-06 10:50:29 +00:00
|
|
|
import LoginPage from "../support/pages/LoginPage";
|
2022-01-07 07:27:58 +00:00
|
|
|
import { keycloakBefore } from "../support/util/keycloak_hooks";
|
2022-12-07 15:28:28 +00:00
|
|
|
import ListingPage from "../support/pages/admin-ui/ListingPage";
|
2021-12-06 10:50:29 +00:00
|
|
|
|
2022-12-07 15:28:28 +00:00
|
|
|
import CreateProviderPage from "../support/pages/admin-ui/manage/identity_providers/CreateProviderPage";
|
2021-12-06 10:50:29 +00:00
|
|
|
import ModalUtils from "../support/util/ModalUtils";
|
2022-12-07 15:28:28 +00:00
|
|
|
import OrderDialog from "../support/pages/admin-ui/manage/identity_providers/OrderDialog";
|
|
|
|
import AddMapperPage from "../support/pages/admin-ui/manage/identity_providers/AddMapperPage";
|
|
|
|
import ProviderFacebookGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderFacebookGeneralSettings";
|
|
|
|
import ProviderBaseGeneralSettingsPage from "../support/pages/admin-ui/manage/identity_providers/ProviderBaseGeneralSettingsPage";
|
|
|
|
import ProviderBaseAdvancedSettingsPage from "../support/pages/admin-ui/manage/identity_providers/ProviderBaseAdvancedSettingsPage";
|
|
|
|
import ProviderGithubGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderGithubGeneralSettings";
|
|
|
|
import ProviderGoogleGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderGoogleGeneralSettings";
|
|
|
|
import ProviderOpenshiftGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderOpenshiftGeneralSettings";
|
|
|
|
import ProviderPaypalGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderPaypalGeneralSettings";
|
|
|
|
import ProviderStackoverflowGeneralSettings from "../support/pages/admin-ui/manage/identity_providers/social/ProviderStackoverflowGeneralSettings";
|
2022-08-31 10:16:12 +00:00
|
|
|
import adminClient from "../support/util/AdminClient";
|
2022-12-07 15:28:28 +00:00
|
|
|
import GroupPage from "../support/pages/admin-ui/manage/groups/GroupPage";
|
2022-09-05 08:46:39 +00:00
|
|
|
import CommonPage from "../support/pages/CommonPage";
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
describe("Identity provider test", () => {
|
|
|
|
const loginPage = new LoginPage();
|
|
|
|
const sidebarPage = new SidebarPage();
|
|
|
|
const masthead = new Masthead();
|
|
|
|
const listingPage = new ListingPage();
|
|
|
|
const createProviderPage = new CreateProviderPage();
|
|
|
|
const addMapperPage = new AddMapperPage();
|
2022-09-05 08:46:39 +00:00
|
|
|
const groupPage = new GroupPage();
|
|
|
|
const commonPage = new CommonPage();
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
const createSuccessMsg = "Identity provider successfully created";
|
2022-09-05 08:46:39 +00:00
|
|
|
const createFailMsg =
|
|
|
|
"Could not create the identity provider: Identity Provider github already exists";
|
2021-12-06 10:50:29 +00:00
|
|
|
const createMapperSuccessMsg = "Mapper created successfully.";
|
|
|
|
|
|
|
|
const changeSuccessMsg =
|
|
|
|
"Successfully changed display order of identity providers";
|
|
|
|
const deletePrompt = "Delete provider?";
|
2022-04-21 12:57:30 +00:00
|
|
|
const deleteSuccessMsg = "Provider successfully deleted.";
|
2021-12-06 10:50:29 +00:00
|
|
|
|
2022-08-31 10:16:12 +00:00
|
|
|
beforeEach(() => {
|
|
|
|
loginPage.logIn();
|
2023-02-10 10:10:35 +00:00
|
|
|
keycloakBefore();
|
2022-08-31 10:16:12 +00:00
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
});
|
|
|
|
|
|
|
|
const socialLoginIdentityProvidersWithCustomFiels = {
|
|
|
|
Facebook: new ProviderFacebookGeneralSettings(),
|
|
|
|
Github: new ProviderGithubGeneralSettings(),
|
|
|
|
Google: new ProviderGoogleGeneralSettings(),
|
|
|
|
"Openshift-v3": new ProviderOpenshiftGeneralSettings(),
|
|
|
|
"Openshift-v4": new ProviderOpenshiftGeneralSettings(),
|
|
|
|
Paypal: new ProviderPaypalGeneralSettings(),
|
|
|
|
Stackoverflow: new ProviderStackoverflowGeneralSettings(),
|
|
|
|
};
|
|
|
|
function getSocialIdpClassInstance(idpTestName: string) {
|
|
|
|
let instance = new ProviderBaseGeneralSettingsPage();
|
|
|
|
Object.entries(socialLoginIdentityProvidersWithCustomFiels).find(
|
|
|
|
([key, value]) => {
|
|
|
|
if (key === idpTestName) {
|
|
|
|
instance = value;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
2023-07-11 14:03:21 +00:00
|
|
|
},
|
2022-08-31 10:16:12 +00:00
|
|
|
);
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
2021-12-06 10:50:29 +00:00
|
|
|
describe("Identity provider creation", () => {
|
|
|
|
const identityProviderName = "github";
|
|
|
|
|
2022-08-31 10:16:12 +00:00
|
|
|
describe("Custom fields tests", () => {
|
|
|
|
const socialLoginIdentityProviders = [
|
|
|
|
{ testName: "Bitbucket", displayName: "BitBucket", alias: "bitbucket" },
|
|
|
|
{ testName: "Facebook", displayName: "Facebook", alias: "facebook" },
|
|
|
|
{ testName: "Github", displayName: "GitHub", alias: "github" },
|
|
|
|
{ testName: "Gitlab", displayName: "Gitlab", alias: "gitlab" },
|
|
|
|
{ testName: "Google", displayName: "Google", alias: "google" },
|
|
|
|
{ testName: "Instagram", displayName: "Instagram", alias: "instagram" },
|
2023-09-11 09:49:48 +00:00
|
|
|
{
|
|
|
|
testName: "LinkedIn OpenID Connect",
|
|
|
|
displayName: "LinkedIn OpenID Connect",
|
|
|
|
alias: "linkedin-openid-connect",
|
|
|
|
},
|
2022-08-31 10:16:12 +00:00
|
|
|
{ testName: "Microsoft", displayName: "Microsoft", alias: "microsoft" },
|
|
|
|
{
|
|
|
|
testName: "Openshift-v3",
|
|
|
|
displayName: "Openshift v3",
|
|
|
|
alias: "openshift-v3",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
testName: "Openshift-v4",
|
|
|
|
displayName: "Openshift v4",
|
|
|
|
alias: "openshift-v4",
|
|
|
|
},
|
|
|
|
{ testName: "Paypal", displayName: "PayPal", alias: "paypal" },
|
|
|
|
{
|
|
|
|
testName: "Stackoverflow",
|
|
|
|
displayName: "StackOverflow",
|
|
|
|
alias: "stackoverflow",
|
|
|
|
},
|
|
|
|
{ testName: "Twitter", displayName: "Twitter", alias: "twitter" },
|
|
|
|
];
|
|
|
|
|
|
|
|
after(async () => {
|
|
|
|
await Promise.all(
|
|
|
|
socialLoginIdentityProviders.map((idp) =>
|
2023-07-11 14:03:21 +00:00
|
|
|
adminClient.deleteIdentityProvider(idp.alias),
|
|
|
|
),
|
2022-08-31 10:16:12 +00:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
socialLoginIdentityProviders.forEach(($idp, linkedIdpsCount) => {
|
|
|
|
it(`should create social login provider ${$idp.testName} with custom fields`, () => {
|
|
|
|
if (linkedIdpsCount == 0) {
|
|
|
|
createProviderPage.clickCard($idp.alias);
|
|
|
|
} else {
|
|
|
|
createProviderPage.clickCreateDropdown().clickItem($idp.alias);
|
|
|
|
}
|
|
|
|
const instance = getSocialIdpClassInstance($idp.testName);
|
|
|
|
instance
|
|
|
|
.typeDisplayOrder("0")
|
|
|
|
.clickAdd()
|
|
|
|
.assertRequiredFieldsErrorsExist()
|
|
|
|
.fillData($idp.testName)
|
|
|
|
.clickAdd()
|
|
|
|
.assertNotificationIdpCreated()
|
|
|
|
.assertFilledDataEqual($idp.testName);
|
|
|
|
});
|
|
|
|
});
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
2022-09-05 08:46:39 +00:00
|
|
|
it("should create github provider", () => {
|
2021-12-06 10:50:29 +00:00
|
|
|
createProviderPage.checkGitHubCardVisible().clickGitHubCard();
|
|
|
|
|
|
|
|
createProviderPage.checkAddButtonDisabled();
|
|
|
|
createProviderPage
|
|
|
|
.fill(identityProviderName)
|
|
|
|
.clickAdd()
|
|
|
|
.checkClientIdRequiredMessage(true);
|
|
|
|
createProviderPage.fill(identityProviderName, "123").clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createSuccessMsg, true);
|
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist(identityProviderName);
|
|
|
|
});
|
|
|
|
|
2022-09-05 08:46:39 +00:00
|
|
|
it("fail to make duplicate github provider", () => {
|
|
|
|
createProviderPage
|
|
|
|
.clickCreateDropdown()
|
|
|
|
.clickItem("github")
|
|
|
|
.fill("github2", "123")
|
|
|
|
.clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createFailMsg, true);
|
|
|
|
});
|
|
|
|
|
2021-12-06 10:50:29 +00:00
|
|
|
it("should create facebook provider", () => {
|
|
|
|
createProviderPage
|
|
|
|
.clickCreateDropdown()
|
|
|
|
.clickItem("facebook")
|
|
|
|
.fill("facebook", "123")
|
|
|
|
.clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createSuccessMsg, true);
|
|
|
|
});
|
|
|
|
|
2022-09-05 08:46:39 +00:00
|
|
|
it("search for existing provider by name", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.searchItem(identityProviderName, false);
|
|
|
|
listingPage.itemExist(identityProviderName, true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("search for non-existing provider by name", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.searchItem("not-existing-provider", false);
|
|
|
|
groupPage.assertNoSearchResultsMessageExist(true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("create and delete provider by item details", () => {
|
|
|
|
createProviderPage
|
|
|
|
.clickCreateDropdown()
|
2023-09-11 09:49:48 +00:00
|
|
|
.clickItem("linkedin-openid-connect")
|
|
|
|
.fill("linkedin-openid-connect", "123")
|
2022-09-05 08:46:39 +00:00
|
|
|
.clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createSuccessMsg, true);
|
|
|
|
|
|
|
|
commonPage
|
|
|
|
.actionToolbarUtils()
|
|
|
|
.clickActionToggleButton()
|
|
|
|
.clickDropdownItem("Delete");
|
|
|
|
|
|
|
|
const modalUtils = new ModalUtils();
|
|
|
|
modalUtils.checkModalTitle(deletePrompt).confirmModal();
|
|
|
|
masthead.checkNotificationMessage(deleteSuccessMsg, true);
|
|
|
|
});
|
|
|
|
|
2022-07-04 11:13:50 +00:00
|
|
|
it.skip("should change order of providers", () => {
|
2021-12-06 10:50:29 +00:00
|
|
|
const orderDialog = new OrderDialog();
|
|
|
|
const providers = [identityProviderName, "facebook", "bitbucket"];
|
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist("facebook");
|
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist(identityProviderName);
|
|
|
|
|
|
|
|
createProviderPage
|
|
|
|
.clickCreateDropdown()
|
|
|
|
.clickItem("bitbucket")
|
|
|
|
.fill("bitbucket", "123")
|
|
|
|
.clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createSuccessMsg, true);
|
|
|
|
|
|
|
|
cy.wait(2000);
|
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist(identityProviderName);
|
|
|
|
|
|
|
|
orderDialog.openDialog().checkOrder(providers);
|
|
|
|
orderDialog.moveRowTo("facebook", identityProviderName);
|
|
|
|
|
|
|
|
orderDialog.checkOrder(["bitbucket", identityProviderName, "facebook"]);
|
|
|
|
|
|
|
|
orderDialog.clickSave();
|
|
|
|
masthead.checkNotificationMessage(changeSuccessMsg);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should delete provider", () => {
|
|
|
|
const modalUtils = new ModalUtils();
|
|
|
|
listingPage.deleteItem(identityProviderName);
|
|
|
|
modalUtils.checkModalTitle(deletePrompt).confirmModal();
|
|
|
|
masthead.checkNotificationMessage(deleteSuccessMsg, true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should add facebook social mapper", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("facebook");
|
|
|
|
addMapperPage.goToMappersTab();
|
|
|
|
addMapperPage.emptyStateAddMapper();
|
|
|
|
addMapperPage.fillSocialMapper("facebook mapper");
|
|
|
|
// addMapperPage.saveNewMapper();
|
|
|
|
masthead.checkNotificationMessage(createMapperSuccessMsg, true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should add Social mapper of type Attribute Importer", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("facebook");
|
|
|
|
addMapperPage.goToMappersTab();
|
|
|
|
addMapperPage.addMapper();
|
|
|
|
addMapperPage.fillSocialMapper("facebook attribute importer");
|
|
|
|
masthead.checkNotificationMessage(createMapperSuccessMsg, true);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should edit facebook mapper", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("facebook");
|
|
|
|
addMapperPage.goToMappersTab();
|
|
|
|
listingPage.goToItemDetails("facebook attribute importer");
|
|
|
|
addMapperPage.editSocialMapper();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should delete facebook mapper", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("facebook");
|
|
|
|
addMapperPage.goToMappersTab();
|
|
|
|
listingPage.deleteItem("facebook attribute importer");
|
2022-02-02 11:44:52 +00:00
|
|
|
cy.findByTestId("confirm").click();
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("clean up providers", () => {
|
|
|
|
const modalUtils = new ModalUtils();
|
|
|
|
|
2022-07-04 11:13:50 +00:00
|
|
|
// TODO: Re-enable this code when the 'should change order of providers' is no longer skipped.
|
|
|
|
// sidebarPage.goToIdentityProviders();
|
|
|
|
// listingPage.itemExist("bitbucket").deleteItem("bitbucket");
|
|
|
|
// modalUtils.checkModalTitle(deletePrompt).confirmModal();
|
|
|
|
// masthead.checkNotificationMessage(deleteSuccessMsg, true);
|
2021-12-06 10:50:29 +00:00
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist("facebook").deleteItem("facebook");
|
|
|
|
modalUtils.checkModalTitle(deletePrompt).confirmModal();
|
|
|
|
masthead.checkNotificationMessage(deleteSuccessMsg, true);
|
|
|
|
});
|
|
|
|
});
|
2022-09-26 17:21:38 +00:00
|
|
|
|
|
|
|
describe("should check provider details", () => {
|
|
|
|
const identityProviderName = "github";
|
|
|
|
const githubSettings = new ProviderGithubGeneralSettings();
|
|
|
|
const advancedSettings = new ProviderBaseAdvancedSettingsPage();
|
|
|
|
|
|
|
|
it("creating github provider", () => {
|
|
|
|
createProviderPage.checkGitHubCardVisible().clickGitHubCard();
|
|
|
|
|
|
|
|
createProviderPage.checkAddButtonDisabled();
|
|
|
|
createProviderPage
|
|
|
|
.fill(identityProviderName)
|
|
|
|
.clickAdd()
|
|
|
|
.checkClientIdRequiredMessage(true);
|
|
|
|
createProviderPage.fill(identityProviderName, "123").clickAdd();
|
|
|
|
masthead.checkNotificationMessage(createSuccessMsg, true);
|
|
|
|
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.itemExist(identityProviderName);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should check general settings", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("github");
|
|
|
|
|
|
|
|
githubSettings.fillData("github");
|
2023-05-24 12:11:06 +00:00
|
|
|
cy.findByTestId("idp-details-save").click();
|
2022-09-26 17:21:38 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("should check input switches and inputs", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("github");
|
|
|
|
|
|
|
|
advancedSettings.typeScopesInput("openid");
|
2023-06-29 16:44:15 +00:00
|
|
|
advancedSettings.assertScopesInputEqual("openid");
|
2022-09-26 17:21:38 +00:00
|
|
|
|
|
|
|
advancedSettings.assertStoreTokensSwitchTurnedOn(false);
|
|
|
|
advancedSettings.assertAcceptsPromptNoneForwardFromClientSwitchTurnedOn(
|
2023-07-11 14:03:21 +00:00
|
|
|
false,
|
2022-09-26 17:21:38 +00:00
|
|
|
);
|
|
|
|
advancedSettings.assertDisableUserInfoSwitchTurnedOn(false);
|
|
|
|
advancedSettings.assertTrustEmailSwitchTurnedOn(false);
|
|
|
|
advancedSettings.assertAccountLinkingOnlySwitchTurnedOn(false);
|
|
|
|
advancedSettings.assertHideOnLoginPageSwitchTurnedOn(false);
|
|
|
|
|
|
|
|
advancedSettings.clickStoreTokensSwitch();
|
|
|
|
advancedSettings.clickAcceptsPromptNoneForwardFromClientSwitch();
|
|
|
|
advancedSettings.clickDisableUserInfoSwitch();
|
|
|
|
advancedSettings.clickTrustEmailSwitch();
|
|
|
|
advancedSettings.clickAccountLinkingOnlySwitch();
|
|
|
|
advancedSettings.clickHideOnLoginPageSwitch();
|
2023-06-29 16:44:15 +00:00
|
|
|
advancedSettings.clickEssentialClaimSwitch();
|
|
|
|
advancedSettings.typeClaimNameInput("claim-name");
|
|
|
|
advancedSettings.typeClaimValueInput("claim-value");
|
2022-09-26 17:21:38 +00:00
|
|
|
|
2023-06-29 16:44:15 +00:00
|
|
|
advancedSettings.ensureAdvancedSettingsAreVisible();
|
2022-09-26 17:21:38 +00:00
|
|
|
advancedSettings.assertStoreTokensSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertAcceptsPromptNoneForwardFromClientSwitchTurnedOn(
|
2023-07-11 14:03:21 +00:00
|
|
|
true,
|
2022-09-26 17:21:38 +00:00
|
|
|
);
|
|
|
|
advancedSettings.assertDisableUserInfoSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertTrustEmailSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertAccountLinkingOnlySwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertHideOnLoginPageSwitchTurnedOn(true);
|
2023-06-29 16:44:15 +00:00
|
|
|
advancedSettings.assertEssentialClaimSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertClaimInputEqual("claim-name");
|
|
|
|
advancedSettings.assertClaimValueInputEqual("claim-value");
|
2022-09-26 17:21:38 +00:00
|
|
|
|
2023-05-24 12:11:06 +00:00
|
|
|
cy.findByTestId("idp-details-save").click();
|
2023-10-03 12:24:37 +00:00
|
|
|
masthead.checkNotificationMessage("Provider successfully updated");
|
2022-09-26 17:21:38 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
it("should revert and save options", () => {
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
listingPage.goToItemDetails("github");
|
|
|
|
|
|
|
|
cy.findByTestId("jump-link-advanced-settings").click();
|
|
|
|
advancedSettings.assertStoreTokensSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertAcceptsPromptNoneForwardFromClientSwitchTurnedOn(
|
2023-07-11 14:03:21 +00:00
|
|
|
true,
|
2022-09-26 17:21:38 +00:00
|
|
|
);
|
|
|
|
advancedSettings.clickStoreTokensSwitch();
|
|
|
|
advancedSettings.clickAcceptsPromptNoneForwardFromClientSwitch();
|
2023-06-29 16:44:15 +00:00
|
|
|
advancedSettings.ensureAdvancedSettingsAreVisible();
|
2022-09-26 17:21:38 +00:00
|
|
|
advancedSettings.assertStoreTokensSwitchTurnedOn(false);
|
|
|
|
advancedSettings.assertAcceptsPromptNoneForwardFromClientSwitchTurnedOn(
|
2023-07-11 14:03:21 +00:00
|
|
|
false,
|
2022-09-26 17:21:38 +00:00
|
|
|
);
|
2023-05-24 12:11:06 +00:00
|
|
|
cy.findByTestId("idp-details-revert").click();
|
2022-09-26 17:21:38 +00:00
|
|
|
advancedSettings.assertStoreTokensSwitchTurnedOn(true);
|
|
|
|
advancedSettings.assertAcceptsPromptNoneForwardFromClientSwitchTurnedOn(
|
2023-07-11 14:03:21 +00:00
|
|
|
true,
|
2022-09-26 17:21:38 +00:00
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
it("should delete providers", () => {
|
|
|
|
const modalUtils = new ModalUtils();
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
|
|
|
|
listingPage.itemExist("github").deleteItem("github");
|
|
|
|
modalUtils.checkModalTitle(deletePrompt).confirmModal();
|
|
|
|
masthead.checkNotificationMessage(deleteSuccessMsg, true);
|
|
|
|
});
|
|
|
|
});
|
2023-03-22 16:14:53 +00:00
|
|
|
|
|
|
|
describe("Accessibility tests for identity providers", () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
loginPage.logIn();
|
|
|
|
keycloakBefore();
|
|
|
|
sidebarPage.goToIdentityProviders();
|
|
|
|
cy.injectAxe();
|
|
|
|
});
|
|
|
|
|
|
|
|
it("Check a11y violations on load/ identity providers", () => {
|
|
|
|
cy.checkA11y();
|
|
|
|
});
|
|
|
|
});
|
2021-12-06 10:50:29 +00:00
|
|
|
});
|