aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-05-11 10:48:42 +0200
committerChocobozzz <me@florianbigard.com>2020-05-11 10:48:42 +0200
commit3a1a00a4af866caa96355c6702bbf805685d0973 (patch)
treefd4f98b80b13c8de7e1e6abc758e98241528b18c /client/e2e/src/po
parent3a7a261f3345c1ff2de4bed0949f84521ca54a96 (diff)
downloadPeerTube-3a1a00a4af866caa96355c6702bbf805685d0973.tar.gz
PeerTube-3a1a00a4af866caa96355c6702bbf805685d0973.tar.zst
PeerTube-3a1a00a4af866caa96355c6702bbf805685d0973.zip
Fix safari e2e tests
Diffstat (limited to 'client/e2e/src/po')
-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/'))