import { waitLoadingEnd } from '../../framework' ; export class FilterNavigationModule { filter ( name ) { const filterGroup = ( ) => cy . get ( 'div.filter-group' ) . contains ( name ) . parent ( ) ; return { filterClick : ( value ) => { waitLoadingEnd ( 1000 ) ; filterGroup ( ) . find ( `[data-testing-id=filter-link-${ value }]` ) . click ( ) ; waitLoadingEnd ( 2000 ) ; } , getFilter : ( value ) => filterGroup ( ) . find ( `[data-testing-id=filter-link-${ value }]` ) , } ; } }