import { HeaderModule } from '../header.module' ; import { MetaDataModule } from '../meta-data.module' ; import { FilterNavigationModule } from './filter-navigation.module' ; import { ProductListModule } from './product-list.module' ; export class SearchResultPage { readonly tag = 'ish-search-result' ; readonly header = new HeaderModule ( ) ; readonly metaData = new MetaDataModule ( ) ; readonly filterNavigation = new FilterNavigationModule ( ) ; readonly productList = new ProductListModule ( 'ish-product-listing' ) ; static navigateTo ( term , page ? ) { cy . visit ( `/search/${ term }${ page ? `?page=${ page }` : '' }` ) ; } get title ( ) { return cy . get ( `${ this . tag } h1` ) ; } }