diff --git a/e2e/src/pages/HomePage.ts b/e2e/src/pages/HomePage.ts index a8bdccb..65d59e4 100644 --- a/e2e/src/pages/HomePage.ts +++ b/e2e/src/pages/HomePage.ts @@ -85,8 +85,10 @@ export class HomePage extends BasePage { async scrollToSection(sectionId: string): Promise { const section = this.page.locator(`#${sectionId}`); + await section.waitFor({ state: 'attached', timeout: 10000 }); await section.scrollIntoViewIfNeeded(); - await this.page.waitForTimeout(500); + await this.page.waitForLoadState('networkidle'); + await this.page.waitForTimeout(1000); } async isSectionVisible(sectionId: string): Promise {