aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/admin-config.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-21 09:09:46 +0200
committerChocobozzz <me@florianbigard.com>2022-06-21 10:49:54 +0200
commit1db86422eb516acd23550f30536de4ebd8f0daea (patch)
tree909c01cf3f5903ba5d44f182d4988586ad8650c1 /client/e2e/src/po/admin-config.po.ts
parent2b621ac0ebe83693bba6354b3482a03ba58143e7 (diff)
downloadPeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.tar.gz
PeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.tar.zst
PeerTube-1db86422eb516acd23550f30536de4ebd8f0daea.zip
Add E2E tests for signup
Diffstat (limited to 'client/e2e/src/po/admin-config.po.ts')
-rw-r--r--client/e2e/src/po/admin-config.po.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/e2e/src/po/admin-config.po.ts b/client/e2e/src/po/admin-config.po.ts
index a15184781..6d48a0fd7 100644
--- a/client/e2e/src/po/admin-config.po.ts
+++ b/client/e2e/src/po/admin-config.po.ts
@@ -1,4 +1,4 @@
1import { browserSleep, go } from '../utils' 1import { getCheckbox, go } from '../utils'
2 2
3export class AdminConfigPage { 3export class AdminConfigPage {
4 4
@@ -22,8 +22,13 @@ export class AdminConfigPage {
22 return $('#instanceCustomHomepageContent').setValue(newValue) 22 return $('#instanceCustomHomepageContent').setValue(newValue)
23 } 23 }
24 24
25 async toggleSignup () {
26 const checkbox = await getCheckbox('signupEnabled')
27 await checkbox.click()
28 }
29
25 async save () { 30 async save () {
26 await $('input[type=submit]').click() 31 const button = $('input[type=submit]')
27 await browserSleep(200) 32 await button.click()
28 } 33 }
29} 34}