const elem = $('#instanceDefaultNSFWPolicy')
await elem.waitForDisplayed()
- await elem.scrollIntoView(false) // Avoid issues with fixed header on firefox
+ await elem.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
await elem.waitForClickable()
return elem.selectByAttribute('value', newValue)
const nsfw = $('#nsfwPolicy')
await nsfw.waitForDisplayed()
- await nsfw.scrollIntoView(false) // Avoid issues with fixed header on firefox
+ await nsfw.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
await nsfw.waitForClickable()
await nsfw.selectByAttribute('value', newValue)
const p2p = await getCheckbox('p2pEnabled')
await p2p.waitForClickable()
- await p2p.scrollIntoView(false) // Avoid issues with fixed header on firefox
+ await p2p.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
await p2p.click()
const submit = $('my-user-video-settings input[type=submit]')
await submit.waitForClickable()
- await submit.scrollIntoView(false)
+ await submit.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
await submit.click()
}
await $('#password').setValue(options.password || 'password')
// Fix weird bug on firefox that "cannot scroll into view" when using just `setValue`
- await $('#email').scrollIntoView(false)
+ await $('#email').scrollIntoView({ block: 'center' })
await $('#email').waitForClickable()
await $('#email').setValue(options.email || `${options.username}@example.com`)
}
let emailPort: number
before(async () => {
+ const key = browser.options.baseUrl + '-emailPort'
// FIXME: typings are wrong, get returns a promise
- emailPort = await (browser.sharedStore.get(browser.options.baseUrl + '-emailPort') as unknown as Promise<number>)
+ // FIXME: use * because the key is not properly escaped by the shared store when using get(key)
+ emailPort = (await (browser.sharedStore.get('*') as unknown as Promise<number>))[key]
await MockSMTPServer.Instance.collectEmails(emailPort, emails)
})