aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/my-account.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-05-25 11:41:29 +0200
committerChocobozzz <me@florianbigard.com>2023-05-25 11:41:29 +0200
commita41b944398af03ad7594380ad1cb7a978f6417cb (patch)
treeb90c6304143463233f477a4511afa67485f17fa3 /client/e2e/src/po/my-account.po.ts
parent22b34b2d7570392a5623cc6aa97a935a03399591 (diff)
downloadPeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.tar.gz
PeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.tar.zst
PeerTube-a41b944398af03ad7594380ad1cb7a978f6417cb.zip
Fix local e2e tests
Diffstat (limited to 'client/e2e/src/po/my-account.po.ts')
-rw-r--r--client/e2e/src/po/my-account.po.ts6
1 files changed, 3 insertions, 3 deletions
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 {
24 const nsfw = $('#nsfwPolicy') 24 const nsfw = $('#nsfwPolicy')
25 25
26 await nsfw.waitForDisplayed() 26 await nsfw.waitForDisplayed()
27 await nsfw.scrollIntoView(false) // Avoid issues with fixed header on firefox 27 await nsfw.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
28 await nsfw.waitForClickable() 28 await nsfw.waitForClickable()
29 29
30 await nsfw.selectByAttribute('value', newValue) 30 await nsfw.selectByAttribute('value', newValue)
@@ -36,7 +36,7 @@ export class MyAccountPage {
36 const p2p = await getCheckbox('p2pEnabled') 36 const p2p = await getCheckbox('p2pEnabled')
37 37
38 await p2p.waitForClickable() 38 await p2p.waitForClickable()
39 await p2p.scrollIntoView(false) // Avoid issues with fixed header on firefox 39 await p2p.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
40 40
41 await p2p.click() 41 await p2p.click()
42 42
@@ -47,7 +47,7 @@ export class MyAccountPage {
47 const submit = $('my-user-video-settings input[type=submit]') 47 const submit = $('my-user-video-settings input[type=submit]')
48 48
49 await submit.waitForClickable() 49 await submit.waitForClickable()
50 await submit.scrollIntoView(false) 50 await submit.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
51 await submit.click() 51 await submit.click()
52 } 52 }
53 53