aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-05-10 10:36:42 +0200
committerChocobozzz <me@florianbigard.com>2020-05-10 10:41:55 +0200
commit3cf198e4f4ea0de47a54268ff50c120e64e721e5 (patch)
tree62d8a7aded93be7558ae60545161a5feaefb5811 /client/e2e/src
parent18e09bbb6bcc6f1c11f6e1da358398e61d7a06b3 (diff)
downloadPeerTube-3cf198e4f4ea0de47a54268ff50c120e64e721e5.tar.gz
PeerTube-3cf198e4f4ea0de47a54268ff50c120e64e721e5.tar.zst
PeerTube-3cf198e4f4ea0de47a54268ff50c120e64e721e5.zip
Fix E2E tests
Diffstat (limited to 'client/e2e/src')
-rw-r--r--client/e2e/src/po/video-watch.po.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index c06b131b6..a6efae288 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -73,7 +73,10 @@ export class VideoWatchPage {
73 } 73 }
74 74
75 async clickOnVideo (videoName: string) { 75 async clickOnVideo (videoName: string) {
76 const video = element(by.css('.videos .video-miniature .video-thumbnail[title="' + videoName + '"]')) 76 const video = element.all(by.css('.videos .video-miniature .video-miniature-name'))
77 .filter(e => e.getText().then(t => t === videoName ))
78 .first()
79
77 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video)) 80 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video))
78 await video.click() 81 await video.click()
79 82
@@ -148,7 +151,7 @@ export class VideoWatchPage {
148 151
149 private getVideoNameElement () { 152 private getVideoNameElement () {
150 // We have 2 video info name block, pick the first that is not empty 153 // We have 2 video info name block, pick the first that is not empty
151 return element.all(by.css('.video-bottom .video-info-name')) 154 return element.all(by.css('.video-info-first-row .video-info-name'))
152 .filter(e => e.getText().then(t => !!t)) 155 .filter(e => e.getText().then(t => !!t))
153 .first() 156 .first()
154 } 157 }