]>
Commit | Line | Data |
---|---|---|
e69cb173 C |
1 | export class VideoUpdatePage { |
2 | ||
3 | async updateName (videoName: string) { | |
3419e0e1 C |
4 | const nameInput = $('input#name') |
5 | ||
6 | await nameInput.waitForDisplayed() | |
7 | await nameInput.clearValue() | |
8 | await nameInput.setValue(videoName) | |
e69cb173 C |
9 | } |
10 | ||
11 | async validUpdate () { | |
12 | const submitButton = await this.getSubmitButton() | |
13 | ||
14 | return submitButton.click() | |
15 | } | |
16 | ||
17 | private getSubmitButton () { | |
3419e0e1 | 18 | return $('.submit-container .action-button') |
e69cb173 C |
19 | } |
20 | } |