aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/video-update.po.ts
blob: 3ffb7ba57711f750db792eb10de779ae9356881d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export class VideoUpdatePage {

  async updateName (videoName: string) {
    const nameInput = $('input#name')

    await nameInput.waitForDisplayed()
    await nameInput.clearValue()
    await nameInput.setValue(videoName)
  }

  async validUpdate () {
    const submitButton = await this.getSubmitButton()

    return submitButton.click()
  }

  private getSubmitButton () {
    return $('.submit-container .action-button')
  }
}