keycloak-scim/cypress/support/pages/admin_console/manage/clients/ClientsPage.ts
2022-04-19 08:25:57 -04:00

23 lines
686 B
TypeScript

import CommonPage from "../../../CommonPage";
import ClientsListTab from "./tabs/ClientsListTab";
import InitialAccessTokenTab from "./tabs/InitialAccessTokenTab";
enum ClientsTab {
ClientsList = "Clients list",
InitialAccessToken = "Initial access token",
}
export default class ClientsPage extends CommonPage {
private clientsListTab = new ClientsListTab();
private initialAccessTokenTab = new InitialAccessTokenTab();
goToClientsListTab() {
this.tabUtils().clickTab(ClientsTab.ClientsList);
return this.clientsListTab;
}
goToInitialAccessTokenTab() {
this.tabUtils().clickTab(ClientsTab.InitialAccessToken);
return this.initialAccessTokenTab;
}
}