keycloak-scim/cypress/support/pages/admin_console/manage/events/EventsPage.ts
2022-05-19 15:43:48 +02:00

23 lines
616 B
TypeScript

import CommonPage from "../../../CommonPage";
import UserEventsTab from "./tabs/UserEventsTab";
import AdminEventsTab from "./tabs/AdminEventsTab";
export enum EventsTab {
UserEvents = "User events",
AdminEvents = "Admin events",
}
export default class EventsPage extends CommonPage {
private userEventsTab = new UserEventsTab();
private adminEventsTab = new AdminEventsTab();
goToUserEventsTab() {
this.tabUtils().clickTab(EventsTab.UserEvents);
return this.userEventsTab;
}
goToAdminEventsTab() {
this.tabUtils().clickTab(EventsTab.AdminEvents);
return this.adminEventsTab;
}
}