aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/admin-config.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-28 11:19:54 +0200
committerChocobozzz <me@florianbigard.com>2022-10-28 15:22:40 +0200
commit814e9e07ba65446af8446dbbd2f0d70c85fd1b33 (patch)
tree9c1f130d4a773208c5bdf33ec942be060e3c3ad2 /client/e2e/src/po/admin-config.po.ts
parent672e185bf3004b46552c227483ffd2802ebf6844 (diff)
downloadPeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.tar.gz
PeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.tar.zst
PeerTube-814e9e07ba65446af8446dbbd2f0d70c85fd1b33.zip
Improve E2E tests
Add tests for private video static endpoints Fix tests for local firefox
Diffstat (limited to 'client/e2e/src/po/admin-config.po.ts')
-rw-r--r--client/e2e/src/po/admin-config.po.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/client/e2e/src/po/admin-config.po.ts b/client/e2e/src/po/admin-config.po.ts
index 6d48a0fd7..27957a71f 100644
--- a/client/e2e/src/po/admin-config.po.ts
+++ b/client/e2e/src/po/admin-config.po.ts
@@ -14,8 +14,14 @@ export class AdminConfigPage {
14 await $('.inner-form-title=' + waitTitles[tab]).waitForDisplayed() 14 await $('.inner-form-title=' + waitTitles[tab]).waitForDisplayed()
15 } 15 }
16 16
17 updateNSFWSetting (newValue: 'do_not_list' | 'blur' | 'display') { 17 async updateNSFWSetting (newValue: 'do_not_list' | 'blur' | 'display') {
18 return $('#instanceDefaultNSFWPolicy').selectByAttribute('value', newValue) 18 const elem = $('#instanceDefaultNSFWPolicy')
19
20 await elem.waitForDisplayed()
21 await elem.scrollIntoView(false) // Avoid issues with fixed header on firefox
22 await elem.waitForClickable()
23
24 return elem.selectByAttribute('value', newValue)
19 } 25 }
20 26
21 updateHomepage (newValue: string) { 27 updateHomepage (newValue: string) {
@@ -24,11 +30,15 @@ export class AdminConfigPage {
24 30
25 async toggleSignup () { 31 async toggleSignup () {
26 const checkbox = await getCheckbox('signupEnabled') 32 const checkbox = await getCheckbox('signupEnabled')
33
34 await checkbox.waitForClickable()
27 await checkbox.click() 35 await checkbox.click()
28 } 36 }
29 37
30 async save () { 38 async save () {
31 const button = $('input[type=submit]') 39 const button = $('input[type=submit]')
40
41 await button.waitForClickable()
32 await button.click() 42 await button.click()
33 } 43 }
34} 44}