1 import { getCheckbox } from '../utils'
3 export class SignupPage {
5 getRegisterMenuButton () {
6 return $('.create-account-button')
9 async clickOnRegisterInMenu () {
10 const button = this.getRegisterMenuButton()
12 await button.waitForClickable()
16 async validateStep () {
17 const next = $('button[type=submit]')
19 await next.waitForClickable()
24 const terms = await getCheckbox('terms')
25 await terms.waitForClickable()
30 async fillAccountStep (options: {
36 if (options.displayName) {
37 await $('#displayName').setValue(options.displayName)
40 if (options.username) {
41 await $('#username').setValue(options.username)
45 await $('#email').setValue(options.email)
48 if (options.password) {
49 await $('#password').setValue(options.password)
53 async fillChannelStep (options: {
57 if (options.displayName) {
58 await $('#displayName').setValue(options.displayName)
62 await $('#name').setValue(options.name)