Skip to content

Commit

Permalink
Merge pull request #463 from Progi1984/foHummingbirdHomePage
Browse files Browse the repository at this point in the history
foHummingbirdHomePage : Stabilize calls for quickview
  • Loading branch information
Progi1984 authored Mar 7, 2025
2 parents d54da59 + 1b6c355 commit 78ad81b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/versions/develop/pages/FO/hummingbird/home/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ class FoHomePage extends FoHomePageVersion implements FoHomeHummingbirdPageInter
* @return {Promise<void>}
*/
async quickViewProduct(page: Page, id: number): Promise<void> {
await page.locator(this.productImg(id)).hover();
await this.waitForVisibleSelector(page, this.productQuickViewLink(id));
await page.locator(this.productQuickViewLink(id)).click();
await page.locator(this.productArticle(id)).hover().then(async () => {
await this.waitForVisibleSelector(page, this.productQuickViewLink(id));
await page.locator(this.productQuickViewLink(id)).click();
});
}

/**
Expand Down

0 comments on commit 78ad81b

Please sign in to comment.