]>
Commit | Line | Data |
---|---|---|
e69cb173 C |
1 | import { by, element } from 'protractor' |
2 | ||
3 | export class VideoUpdatePage { | |
4 | ||
5 | async updateName (videoName: string) { | |
6 | const nameInput = element(by.css('input#name')) | |
7 | await nameInput.clear() | |
8 | await nameInput.sendKeys(videoName) | |
9 | } | |
10 | ||
11 | async validUpdate () { | |
12 | const submitButton = await this.getSubmitButton() | |
13 | ||
14 | return submitButton.click() | |
15 | } | |
16 | ||
17 | private getSubmitButton () { | |
2e03d650 | 18 | return element(by.css('.submit-container .action-button')) |
e69cb173 C |
19 | } |
20 | } |