| 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); |
| } |
| }; |