diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-21 09:09:46 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-21 10:49:54 +0200 |
commit | 1db86422eb516acd23550f30536de4ebd8f0daea (patch) | |
tree | 909c01cf3f5903ba5d44f182d4988586ad8650c1 /client/e2e/src/po/admin-config.po.ts | |
parent | 2b621ac0ebe83693bba6354b3482a03ba58143e7 (diff) | |
download | PeerTube-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.ts | 11 |
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 @@ | |||
1 | import { browserSleep, go } from '../utils' | 1 | import { getCheckbox, go } from '../utils' |
2 | 2 | ||
3 | export class AdminConfigPage { | 3 | export 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 | } |