46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import LoginPage from "../support/pages/LoginPage";
|
|
import SidebarPage from "../support/pages/admin_console/SidebarPage";
|
|
import SessionsPage from "../support/pages/admin_console/manage/sessions/SessionsPage";
|
|
import { keycloakBefore } from "../support/util/keycloak_before";
|
|
|
|
const loginPage = new LoginPage();
|
|
const sidebarPage = new SidebarPage();
|
|
const sessionsPage = new SessionsPage();
|
|
|
|
describe("Sessions test", function () {
|
|
describe("Session type dropdown", function () {
|
|
beforeEach(function () {
|
|
keycloakBefore();
|
|
loginPage.logIn();
|
|
sidebarPage.goToSessions();
|
|
});
|
|
|
|
it("Check dropdown display", () => {
|
|
sessionsPage.shouldDisplay();
|
|
});
|
|
|
|
it("Check dropdown options exist", () => {
|
|
sessionsPage.shouldNotBeEmpty();
|
|
});
|
|
|
|
it("Select 'All session types' dropdown option", () => {
|
|
sessionsPage.selectAllSessionsType();
|
|
});
|
|
|
|
it("Select 'Regular SSO' dropdown option", () => {
|
|
sessionsPage.selectRegularSSO();
|
|
});
|
|
|
|
it("Select 'Offline' dropdown option", () => {
|
|
sessionsPage.selectOffline();
|
|
});
|
|
|
|
it("Select 'Direct grant' dropdown option", () => {
|
|
sessionsPage.selectDirectGrant();
|
|
});
|
|
|
|
it("Select 'Service account' dropdown option", () => {
|
|
sessionsPage.selectServiceAccount();
|
|
});
|
|
});
|
|
});
|