From 7e8c5c36d7d99de891e51cb05a5cfaf1d7f2ba31 Mon Sep 17 00:00:00 2001 From: pcheremu Date: Fri, 8 Sep 2023 01:59:17 +0200 Subject: [PATCH] test: disable scroll for partial href --- tests/e2e/src/pages/base.page.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/src/pages/base.page.ts b/tests/e2e/src/pages/base.page.ts index 7d92d2c89..5f18d583d 100644 --- a/tests/e2e/src/pages/base.page.ts +++ b/tests/e2e/src/pages/base.page.ts @@ -119,7 +119,7 @@ export class BasePage { async getElementByPartialHref(partialHref: string) { element = await this.world.page?.locator(`//*[contains(@href,'${partialHref}')]`).first(); - await element.scrollIntoViewIfNeeded(); + // await element.scrollIntoViewIfNeeded(); return await element; }