From 2024a3b9338d667640aa115da6071ea83d088c50 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 20 Apr 2022 10:53:45 +0200 Subject: [PATCH] Fix e2e tests --- client/e2e/src/po/video-watch.po.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/e2e/src/po/video-watch.po.ts b/client/e2e/src/po/video-watch.po.ts index cecda3a8b..65bf21837 100644 --- a/client/e2e/src/po/video-watch.po.ts +++ b/client/e2e/src/po/video-watch.po.ts @@ -52,10 +52,8 @@ export class VideoWatchPage { await $('.vjs-big-play-button').waitForDisplayed() } - async isEmbedWarningDisplayed () { - const text = await $('.vjs-dock-description').getText() - - return !!text.trim() + isEmbedWarningDisplayed () { + return $('.peertube-dock-description').isDisplayed() } goOnP2PMediaLoaderEmbed () {