8d72f8a705
* upgrade cypress * fixed delete now has dialog * also check "unAssign" * client type no longer required * providers and group changes * grp creation working * moved create realm button ouside the dropdown * sped up test and added cleanup * Revert "moved create realm button ouside the dropdown" This reverts commit e2076a5305808417de910ba8fada8e528e5c356a. * make test re-runnable * removed un needed navigation * Fix misformed Cypress config for GitHub Action * cleanup after test * fixed cleanup * temporary removed this test * also remove user "new" * try adding a wait for CI * get different modal id * add {force: true} to modal functions * mv grp search last and ignore 401 * try using cy.get and disable video for testing * add back video artifacts Co-authored-by: mfrances <mfrances@redhat.com> Co-authored-by: Jon Koops <jonkoops@gmail.com> Co-authored-by: jenny-s51 <jshandel@redhat.com>
104 lines
2.1 KiB
TypeScript
104 lines
2.1 KiB
TypeScript
export default class SidebarPage {
|
|
private realmsDrpDwn = "realmSelectorToggle";
|
|
private realmsList = "realmSelector";
|
|
private createRealmBtn = "add-realm";
|
|
|
|
private clientsBtn = "#nav-item-clients";
|
|
private clientScopesBtn = "#nav-item-client-scopes";
|
|
private realmRolesBtn = "#nav-item-roles";
|
|
private usersBtn = "#nav-item-users";
|
|
private groupsBtn = "#nav-item-groups";
|
|
private sessionsBtn = "#nav-item-sessions";
|
|
private eventsBtn = "#nav-item-events";
|
|
|
|
private realmSettingsBtn = "#nav-item-realm-settings";
|
|
private authenticationBtn = "#nav-item-authentication";
|
|
private identityProvidersBtn = "#nav-item-identity-providers";
|
|
private userFederationBtn = "#nav-item-user-federation";
|
|
|
|
getCurrentRealm() {
|
|
return cy.getId(this.realmsDrpDwn).scrollIntoView().invoke("text");
|
|
}
|
|
|
|
goToRealm(realmName: string) {
|
|
cy.getId(this.realmsDrpDwn).scrollIntoView().click();
|
|
cy.getId(this.realmsList).get("ul").contains(realmName).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToCreateRealm() {
|
|
cy.getId(this.realmsDrpDwn).scrollIntoView();
|
|
cy.getId(this.realmsDrpDwn).click();
|
|
cy.getId(this.createRealmBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToClients() {
|
|
cy.get(this.clientsBtn).scrollIntoView().click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToClientScopes() {
|
|
cy.get(this.clientScopesBtn).scrollIntoView().click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToRealmRoles() {
|
|
cy.get(this.realmRolesBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToUsers() {
|
|
cy.get(this.usersBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToGroups() {
|
|
cy.get(this.groupsBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToSessions() {
|
|
cy.get(this.sessionsBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToEvents() {
|
|
cy.get(this.eventsBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToRealmSettings() {
|
|
cy.get(this.realmSettingsBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToAuthentication() {
|
|
cy.get(this.authenticationBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToIdentityProviders() {
|
|
cy.get(this.identityProvidersBtn).click();
|
|
|
|
return this;
|
|
}
|
|
|
|
goToUserFederation() {
|
|
cy.get(this.userFederationBtn).click();
|
|
cy.wait(1000);
|
|
|
|
return this;
|
|
}
|
|
}
|