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