]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/e2e/src/po/video-update.po.ts
Fix local E2E tests
[github/Chocobozzz/PeerTube.git] / client / e2e / src / po / video-update.po.ts
1 export class VideoUpdatePage {
2
3 async updateName (videoName: string) {
4 const nameInput = $('input#name')
5
6 await nameInput.waitForDisplayed()
7 await nameInput.clearValue()
8 await nameInput.setValue(videoName)
9 }
10
11 async validUpdate () {
12 const submitButton = await this.getSubmitButton()
13
14 return submitButton.click()
15 }
16
17 private getSubmitButton () {
18 return $('.submit-container .action-button')
19 }
20 }