We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0ed66 commit d5e110dCopy full SHA for d5e110d
src/pages/FO/FOBasePage.ts
@@ -528,9 +528,10 @@ export default class FOBasePage extends CommonPage implements FOBasePagePageInte
528
* @returns {Promise<void>}
529
*/
530
async goToSubCategory(page: Page, categoryID: number, subCategoryID: number): Promise<void> {
531
- await page.locator(this.categoryMenu(categoryID)).first().hover();
532
- await page.locator(this.categoryMenu(subCategoryID)).click();
533
- await page.waitForLoadState();
+ await Promise.all([
+ page.locator(this.categoryMenu(categoryID)).first().hover(),
+ this.clickAndWaitForURL(page, this.categoryMenu(subCategoryID)),
534
+ ]);
535
}
536
537
/**
0 commit comments