Chocobozzz/PeerTube

View on GitHub
client/e2e/src/po/video-update.po.ts

Summary

Maintainability
A
0 mins
Test Coverage
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')
  }
}