From 6be9662f921dfe1148c2cce16e07d32373ef70cc Mon Sep 17 00:00:00 2001 From: Conrad Chan Date: Mon, 7 Jun 2021 13:10:51 -0700 Subject: [PATCH] test(e2e): Add more media settings tests for dash (#1399) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- src/lib/viewers/controls/media/HDBadge.tsx | 6 +- src/lib/viewers/media/MediaControls.html | 30 +++-- src/lib/viewers/media/Settings.js | 2 +- test/integration/media/DashViewer.e2e.test.js | 29 ++++- test/integration/media/MP3Viewer.e2e.test.js | 10 ++ test/integration/media/MP4Viewer.e2e.test.js | 10 ++ .../media/Video360Viewer.e2e.test.js | 9 +- test/support/mediaSettingsTests.js | 106 ++++++++++++++++-- 8 files changed, 179 insertions(+), 23 deletions(-) diff --git a/src/lib/viewers/controls/media/HDBadge.tsx b/src/lib/viewers/controls/media/HDBadge.tsx index 6d984db0c..4881c1ae2 100644 --- a/src/lib/viewers/controls/media/HDBadge.tsx +++ b/src/lib/viewers/controls/media/HDBadge.tsx @@ -2,5 +2,9 @@ import React from 'react'; import './HDBadge.scss'; export default function HDBadge(): JSX.Element { - return
HD
; + return ( +
+ HD +
+ ); } diff --git a/src/lib/viewers/media/MediaControls.html b/src/lib/viewers/media/MediaControls.html index 78e5ef557..029366644 100644 --- a/src/lib/viewers/media/MediaControls.html +++ b/src/lib/viewers/media/MediaControls.html @@ -3,12 +3,12 @@
@@ -40,21 +43,30 @@ diff --git a/src/lib/viewers/media/Settings.js b/src/lib/viewers/media/Settings.js index b2dac71ae..e093be766 100644 --- a/src/lib/viewers/media/Settings.js +++ b/src/lib/viewers/media/Settings.js @@ -43,7 +43,7 @@ const SETTINGS_TEMPLATE = `
${__('media_quality_auto')}
${ICON_ARROW_RIGHT}
-