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.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}