aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/video-watch.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-18 10:20:55 +0200
committerChocobozzz <me@florianbigard.com>2019-06-19 15:05:35 +0200
commitbbe078ba55be635b5fc92f8f6286c45792b9e7e5 (patch)
tree6d64d40dec7d445a9855856d4cd42587d360bab5 /client/e2e/src/po/video-watch.po.ts
parente379f813d45c4a83442aa13268d351e2605a7a01 (diff)
downloadPeerTube-bbe078ba55be635b5fc92f8f6286c45792b9e7e5.tar.gz
PeerTube-bbe078ba55be635b5fc92f8f6286c45792b9e7e5.tar.zst
PeerTube-bbe078ba55be635b5fc92f8f6286c45792b9e7e5.zip
Fix e2e tests in parallel
Diffstat (limited to 'client/e2e/src/po/video-watch.po.ts')
-rw-r--r--client/e2e/src/po/video-watch.po.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index 9bb0a3919..c06b131b6 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -126,8 +126,18 @@ export class VideoWatchPage {
126 return element(by.css('.action-button-save')).click() 126 return element(by.css('.action-button-save')).click()
127 } 127 }
128 128
129 async saveToWatchLater () { 129 async createPlaylist (name: string) {
130 return element.all(by.css('my-video-add-to-playlist .playlist')).first().click() 130 await element(by.css('.new-playlist-button')).click()
131
132 await element(by.css('#displayName')).sendKeys(name)
133
134 return element(by.css('.new-playlist-block input[type=submit]')).click()
135 }
136
137 async saveToPlaylist (name: string) {
138 return element.all(by.css('my-video-add-to-playlist .playlist'))
139 .filter(p => p.getText().then(t => t === name))
140 .click()
131 } 141 }
132 142
133 waitUntilVideoName (name: string, maxTime: number) { 143 waitUntilVideoName (name: string, maxTime: number) {