blob: 4de99f494d3936c2e408a46bd8447ec1f019ff52 [file] [log] [blame]
import { PageObject } from '../../../infra-sk/modules/page_object/page_object';
import { SearchControlsSkPO } from '../search-controls-sk/search-controls-sk_po';
/** A page object for the SearchPageSkPO component. */
export class SearchPageSkPO extends PageObject {
getSearchControlsSkPO() {
return this.selectOnePOEThenApplyFn(
'search-controls-sk', async (el) => new SearchControlsSkPO(el));
}
getSummary() {
return this.selectOnePOEThenApplyFn('p.summary', (el) => el.innerText);
}
// TODO(lovisolo): Replace with DigestDetailsSkPO when DigestDetailsSk is ported to TypeScript
// and tested with a page object.
getDigests() {
return this.selectAllPOEThenMap('.digest_label:nth-child(1)', (el) => el.innerText);
}
};