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.waitForDisplayed()
16 async validateStep () {
17 const next = $('button[type=submit]')
19 await next.waitForClickable()
24 const terms = await getCheckbox('terms')
29 async fillAccountStep (options: {
35 if (options.displayName) {
36 await $('#displayName').setValue(options.displayName)
39 if (options.username) {
40 await $('#username').setValue(options.username)
44 await $('#email').setValue(options.email)
47 if (options.password) {
48 await $('#password').setValue(options.password)
52 async fillChannelStep (options: {
56 if (options.displayName) {
57 await $('#displayName').setValue(options.displayName)
61 await $('#name').setValue(options.name)