From a41b944398af03ad7594380ad1cb7a978f6417cb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 25 May 2023 11:41:29 +0200 Subject: Fix local e2e tests --- client/e2e/src/po/my-account.po.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/e2e/src/po/my-account.po.ts') diff --git a/client/e2e/src/po/my-account.po.ts b/client/e2e/src/po/my-account.po.ts index 222dbb569..5188eca11 100644 --- a/client/e2e/src/po/my-account.po.ts +++ b/client/e2e/src/po/my-account.po.ts @@ -24,7 +24,7 @@ export class MyAccountPage { const nsfw = $('#nsfwPolicy') await nsfw.waitForDisplayed() - await nsfw.scrollIntoView(false) // Avoid issues with fixed header on firefox + await nsfw.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header await nsfw.waitForClickable() await nsfw.selectByAttribute('value', newValue) @@ -36,7 +36,7 @@ export class MyAccountPage { const p2p = await getCheckbox('p2pEnabled') await p2p.waitForClickable() - await p2p.scrollIntoView(false) // Avoid issues with fixed header on firefox + await p2p.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header await p2p.click() @@ -47,7 +47,7 @@ export class MyAccountPage { const submit = $('my-user-video-settings input[type=submit]') await submit.waitForClickable() - await submit.scrollIntoView(false) + await submit.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header await submit.click() } -- cgit v1.2.3