aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src')
-rw-r--r--client/e2e/src/po/video-watch.po.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index 4a36fce62..c5e37e6de 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -84,12 +84,13 @@ export class VideoWatchPage {
84 } 84 }
85 85
86 async clickOnFirstVideo () { 86 async clickOnFirstVideo () {
87 const video = element.all(by.css('.videos .video-miniature .video-miniature-name')).first() 87 const video = element.all(by.css('.videos .video-miniature .video-thumbnail')).first()
88 const videoName = element.all(by.css('.videos .video-miniature .video-miniature-name')).first()
88 89
89 // Don't know why but the expectation fails on Safari 90 // Don't know why but the expectation fails on Safari
90 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video)) 91 await browser.wait(browser.ExpectedConditions.elementToBeClickable(video))
91 92
92 const textToReturn = video.getText() 93 const textToReturn = videoName.getText()
93 await video.click() 94 await video.click()
94 95
95 await browser.wait(browser.ExpectedConditions.urlContains('/watch/')) 96 await browser.wait(browser.ExpectedConditions.urlContains('/watch/'))