aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/video-update.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-17 08:11:25 +0200
committerChocobozzz <me@florianbigard.com>2019-06-17 08:16:09 +0200
commite69cb173ba63d0e556d4af6cbaf18b11f16af3a9 (patch)
treed75c666b2a66f667db1e9dce7f9f606a6b30cfcb /client/e2e/src/po/video-update.po.ts
parent6b226c32782ea7779ced56c1e1090d8b51c5c504 (diff)
downloadPeerTube-e69cb173ba63d0e556d4af6cbaf18b11f16af3a9.tar.gz
PeerTube-e69cb173ba63d0e556d4af6cbaf18b11f16af3a9.tar.zst
PeerTube-e69cb173ba63d0e556d4af6cbaf18b11f16af3a9.zip
Add more e2e tests
Diffstat (limited to 'client/e2e/src/po/video-update.po.ts')
-rw-r--r--client/e2e/src/po/video-update.po.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/client/e2e/src/po/video-update.po.ts b/client/e2e/src/po/video-update.po.ts
new file mode 100644
index 000000000..4de3b1b1d
--- /dev/null
+++ b/client/e2e/src/po/video-update.po.ts
@@ -0,0 +1,20 @@
1import { by, element } from 'protractor'
2
3export 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 () {
18 return element(by.css('.submit-button:not(.disabled) input'))
19 }
20}