File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ export interface FoCategoryPageInterface extends FOBasePagePageInterface {
3636 hasBlockCategories ( page : Page ) : Promise < boolean > ;
3737 hasSearchFilters ( page : Page ) : Promise < boolean > ;
3838 hasSearchFilterType ( page : Page , facetType : string , facetLabel ?: string ) : Promise < boolean > ;
39+ hasFiltersSuppliers ( page : Page ) : Promise < boolean >
3940 isActiveFilterNotVisible ( page : Page ) : Promise < boolean > ;
4041 isAddedToWishlist ( page : Page , idxProduct : number ) : Promise < boolean > ;
4142 isAddedToWishlist ( page : Page , idxProduct : number ) : Promise < boolean > ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ class Dashboard extends BOBasePage implements DashboardPageInterface {
172172 this . recentOrdersTitle = '#dash_recent_orders div.panel-heading' ;
173173 this . recentOrdersTable = '#table_recent_orders' ;
174174 this . recentOrdersTableRow = ( row : number ) => `#table_recent_orders tbody tr:nth-child(${ row } )` ;
175- this . recentOrdersTableRowDetailsIcon = ( row : number ) => `${ this . recentOrdersTableRow ( row ) } #details a[href*='vieworder ']` ;
175+ this . recentOrdersTableRowDetailsIcon = ( row : number ) => `${ this . recentOrdersTableRow ( row ) } #details a[href*='view ']` ;
176176 this . bestSellersTab = '#dashproducts a[href*=\'#dash_best_sellers\']' ;
177177 this . bestSellersTabTitle = '#dash_best_sellers div.panel-heading' ;
178178 this . bestSellersTable = '#table_best_sellers' ;
Original file line number Diff line number Diff line change @@ -485,6 +485,15 @@ class CategoryPage extends FOBasePage implements FoCategoryPageInterface {
485485 /////////////////////////
486486 // Side Block : Filters
487487 /////////////////////////
488+ /**
489+ * Return if the supplier list is present
490+ * @param page {Page} Browser tab
491+ * @return {Promise<boolean> }
492+ */
493+ async hasFiltersSuppliers ( page : Page ) : Promise < boolean > {
494+ return ( await page . locator ( this . searchFiltersSuppliers ) . count ( ) ) === 1 ;
495+ }
496+
488497 /**
489498 * Return if the supplier list is a dropdown
490499 * @param page {Page} Browser tab
You can’t perform that action at this time.
0 commit comments