diff options
Diffstat (limited to 'client/e2e')
-rw-r--r-- | client/e2e/src/po/video-watch.po.ts | 7 |
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 | } |