aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/admin-config.po.ts
diff options
context:
space:
mode:
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}