keycloak-scim/cypress/support/pages/CommonPage.ts
2022-04-19 08:25:57 -04:00

57 lines
1.5 KiB
TypeScript

import Masthead from "./admin_console/Masthead";
import SidebarPage from "./admin_console/SidebarPage";
import TabUtils from "./admin_console/components/TabPage";
import FormUtils from "./admin_console/components/FormPage";
import ModalUtils from "../util/ModalUtils";
import ActionToolbarUtils from "./admin_console/components/ActionToolbarPage";
import TableToolbarUtils from "./admin_console/components/TableToolbarPage";
import TableUtils from "./admin_console/components/TablePage";
import EmptyStatePage from "./admin_console/components/EmptyStatePage";
export default class CommonPage {
private mastheadPage = new Masthead();
private sidebarPage = new SidebarPage();
private tabUtilsObj = new TabUtils();
private formUtilsObj = new FormUtils();
private modalUtilsObj = new ModalUtils();
private actionToolbarUtilsObj = new ActionToolbarUtils();
private tableUtilsObj = new TableUtils();
private tableToolbarUtilsObj = new TableToolbarUtils();
private emptyStatePage = new EmptyStatePage();
masthead() {
return this.mastheadPage;
}
sidebar() {
return this.sidebarPage;
}
tabUtils() {
return this.tabUtilsObj;
}
formUtils() {
return this.formUtilsObj;
}
modalUtils() {
return this.modalUtilsObj;
}
actionToolbarUtils() {
return this.actionToolbarUtilsObj;
}
tableUtils() {
return this.tableUtilsObj;
}
tableToolbarUtils() {
return this.tableToolbarUtilsObj;
}
emptyState() {
return this.emptyStatePage;
}
}