aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/player.po.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-30 09:11:12 +0100
committerChocobozzz <me@florianbigard.com>2020-11-30 09:11:12 +0100
commit6b88559babc1e0490119a6b52411b10910d9da9d (patch)
tree5a82afdc92899e921f8631f2e6b07b889b794278 /client/e2e/src/po/player.po.ts
parent4a7f90248b546803cab07188521ac97e175b31e6 (diff)
downloadPeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.tar.gz
PeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.tar.zst
PeerTube-6b88559babc1e0490119a6b52411b10910d9da9d.zip
Fix local e2e tests
Diffstat (limited to 'client/e2e/src/po/player.po.ts')
-rw-r--r--client/e2e/src/po/player.po.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.ts
index d18d81f16..1bba11171 100644
--- a/client/e2e/src/po/player.po.ts
+++ b/client/e2e/src/po/player.po.ts
@@ -16,6 +16,12 @@ export class PlayerPage {
16 return browser.wait(browser.ExpectedConditions.textToBePresentInElement(elem, text)) 16 return browser.wait(browser.ExpectedConditions.textToBePresentInElement(elem, text))
17 } 17 }
18 18
19 waitUntilPlayerWrapper () {
20 const elem = element(by.css('#video-wrapper'))
21
22 return browser.wait(browser.ExpectedConditions.presenceOf(elem))
23 }
24
19 async playAndPauseVideo (isAutoplay: boolean) { 25 async playAndPauseVideo (isAutoplay: boolean) {
20 const videojsEl = element(by.css('div.video-js')) 26 const videojsEl = element(by.css('div.video-js'))
21 await browser.wait(browser.ExpectedConditions.elementToBeClickable(videojsEl)) 27 await browser.wait(browser.ExpectedConditions.elementToBeClickable(videojsEl))