keycloak-scim/cypress/support/pages/admin_console/manage/groups/SearchGroup.ts

20 lines
437 B
TypeScript
Raw Normal View History

export class SearchGroupPage {
private searchField = "group-search";
private searchButton = "search-button";
searchGroup(search: string) {
cy.getId(this.searchField).type(search);
return this;
}
clickSearchButton() {
cy.getId(this.searchButton).click();
return this;
}
checkTerm(searchTerm: string) {
cy.get(".pf-c-chip-group").children().contains(searchTerm).should("exist");
return this;
}
}