aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-24 14:33:58 +0200
committerChocobozzz <me@florianbigard.com>2018-05-24 14:35:24 +0200
commitb528582df28f20ec7481d3c73d16b4291fe9c7e7 (patch)
tree1ff4e7b51e884b1a158bdfcc0f7a53d8fd287588 /client/e2e/src/po
parent108a66f0dac7586f2f7871c6bb77f73cb924f2b3 (diff)
downloadPeerTube-b528582df28f20ec7481d3c73d16b4291fe9c7e7.tar.gz
PeerTube-b528582df28f20ec7481d3c73d16b4291fe9c7e7.tar.zst
PeerTube-b528582df28f20ec7481d3c73d16b4291fe9c7e7.zip
Clean up E2E tests
Diffstat (limited to 'client/e2e/src/po')
-rw-r--r--client/e2e/src/po/video-watch.po.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts
index ec3d16c3b..5bb7e5694 100644
--- a/client/e2e/src/po/video-watch.po.ts
+++ b/client/e2e/src/po/video-watch.po.ts
@@ -1,4 +1,4 @@
1import { by, element, browser } from 'protractor' 1import { browser, by, element } from 'protractor'
2 2
3export class VideoWatchPage { 3export class VideoWatchPage {
4 async goOnVideosList (isMobileDevice: boolean, isSafari: boolean) { 4 async goOnVideosList (isMobileDevice: boolean, isSafari: boolean) {
@@ -41,18 +41,13 @@ export class VideoWatchPage {
41 .then(seconds => parseInt(seconds, 10)) 41 .then(seconds => parseInt(seconds, 10))
42 } 42 }
43 43
44 async pauseVideo (isAutoplay: boolean, isDesktopSafari: boolean) { 44 async pauseVideo (isAutoplay: boolean) {
45 if (isAutoplay === false) { 45 if (isAutoplay === false) {
46 const playButton = element(by.css('.vjs-big-play-button')) 46 const playButton = element(by.css('.vjs-big-play-button'))
47 await browser.wait(browser.ExpectedConditions.elementToBeClickable(playButton)) 47 await browser.wait(browser.ExpectedConditions.elementToBeClickable(playButton))
48 await playButton.click() 48 await playButton.click()
49 } 49 }
50 50
51 // if (isDesktopSafari === true) {
52 // await browser.sleep(1000)
53 // await element(by.css('.vjs-play-control')).click()
54 // }
55
56 await browser.sleep(1000) 51 await browser.sleep(1000)
57 await browser.wait(browser.ExpectedConditions.invisibilityOf(element(by.css('.vjs-loading-spinner')))) 52 await browser.wait(browser.ExpectedConditions.invisibilityOf(element(by.css('.vjs-loading-spinner'))))
58 53