1 import { by, element } from 'protractor'
3 export class VideoUpdatePage {
5 async updateName (videoName: string) {
6 const nameInput = element(by.css('input#name'))
7 await nameInput.clear()
8 await nameInput.sendKeys(videoName)
11 async validUpdate () {
12 const submitButton = await this.getSubmitButton()
14 return submitButton.click()
17 private getSubmitButton () {
18 return element(by.css('.submit-container .action-button'))