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