]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/e2e/src/po/video-update.po.ts
Fix videos language tests
[github/Chocobozzz/PeerTube.git] / client / e2e / src / po / video-update.po.ts
CommitLineData
e69cb173
C
1export 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}