keycloak-scim/cypress/support/pages/admin_console/manage/events/EventsPage.ts

24 lines
616 B
TypeScript
Raw Normal View History

2022-05-19 13:43:48 +00:00
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;
}
}