Skip to content

Commit dcd5f06

Browse files
authored
Merge pull request #749 from Progi1984/fix
2 parents 314ddbe + ff9fec9 commit dcd5f06

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/interfaces/FO/category/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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>;

src/versions/develop/pages/BO/dashboard/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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';

src/versions/develop/pages/FO/classic/category/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)