keycloak-scim/js/apps/admin-ui/cypress/support/pages/CommonPage.ts

58 lines
1.4 KiB
TypeScript
Raw Normal View History

import Masthead from "./admin-ui/Masthead";
import SidebarPage from "./admin-ui/SidebarPage";
import TabUtils from "./admin-ui/components/TabPage";
import FormUtils from "./admin-ui/components/FormPage";
2022-04-19 12:25:57 +00:00
import ModalUtils from "../util/ModalUtils";
import ActionToolbarUtils from "./admin-ui/components/ActionToolbarPage";
import TableToolbarUtils from "./admin-ui/components/TableToolbarPage";
import TableUtils from "./admin-ui/components/TablePage";
import EmptyStatePage from "./admin-ui/components/EmptyStatePage";
2022-04-19 12:25:57 +00:00
export default class CommonPage {
#mastheadPage = new Masthead();
#sidebarPage = new SidebarPage();
#tabUtilsObj = new TabUtils();
#formUtilsObj = new FormUtils();
#modalUtilsObj = new ModalUtils();
#actionToolbarUtilsObj = new ActionToolbarUtils();
#tableUtilsObj = new TableUtils();
#tableToolbarUtilsObj = new TableToolbarUtils();
#emptyStatePage = new EmptyStatePage();
2022-04-19 12:25:57 +00:00
masthead() {
return this.#mastheadPage;
2022-04-19 12:25:57 +00:00
}
sidebar() {
return this.#sidebarPage;
2022-04-19 12:25:57 +00:00
}
tabUtils() {
return this.#tabUtilsObj;
2022-04-19 12:25:57 +00:00
}
formUtils() {
return this.#formUtilsObj;
2022-04-19 12:25:57 +00:00
}
modalUtils() {
return this.#modalUtilsObj;
2022-04-19 12:25:57 +00:00
}
actionToolbarUtils() {
return this.#actionToolbarUtilsObj;
2022-04-19 12:25:57 +00:00
}
tableUtils() {
return this.#tableUtilsObj;
2022-04-19 12:25:57 +00:00
}
tableToolbarUtils() {
return this.#tableToolbarUtilsObj;
2022-04-19 12:25:57 +00:00
}
emptyState() {
return this.#emptyStatePage;
2022-04-19 12:25:57 +00:00
}
}