Skip to content

Commit 78ad81b

Browse files
authored
Merge pull request #463 from Progi1984/foHummingbirdHomePage
foHummingbirdHomePage : Stabilize calls for quickview
2 parents d54da59 + 1b6c355 commit 78ad81b

File tree

1 file changed

+4
-3
lines changed
  • src/versions/develop/pages/FO/hummingbird/home

1 file changed

+4
-3
lines changed

src/versions/develop/pages/FO/hummingbird/home/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ class FoHomePage extends FoHomePageVersion implements FoHomeHummingbirdPageInter
7474
* @return {Promise<void>}
7575
*/
7676
async quickViewProduct(page: Page, id: number): Promise<void> {
77-
await page.locator(this.productImg(id)).hover();
78-
await this.waitForVisibleSelector(page, this.productQuickViewLink(id));
79-
await page.locator(this.productQuickViewLink(id)).click();
77+
await page.locator(this.productArticle(id)).hover().then(async () => {
78+
await this.waitForVisibleSelector(page, this.productQuickViewLink(id));
79+
await page.locator(this.productQuickViewLink(id)).click();
80+
});
8081
}
8182

8283
/**

0 commit comments

Comments
 (0)