From 9b1489324999b3e1ce084cba9fd6cffb46a7ad49 Mon Sep 17 00:00:00 2001 From: blazejpass <118356546+blazejpass@users.noreply.github.com> Date: Mon, 6 May 2024 14:12:59 +0200 Subject: [PATCH] BC-6367-Test-implementaion-for-BBB-tool (#3443) * Add data testid to create bbb modal, and delete dynamic naming of data test id for cancel button * Add data-testid for bbb tool bar --------- Co-authored-by: wiaderwek Co-authored-by: marcinpasscon <118526182+marcinpasscon@users.noreply.github.com> --- static/scripts/courses.js | 1 + views/courses/components/tools.hbs | 10 +++++----- views/lib/components/modal-form.hbs | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/scripts/courses.js b/static/scripts/courses.js index 733cce4639..68f6fb1168 100644 --- a/static/scripts/courses.js +++ b/static/scripts/courses.js @@ -274,6 +274,7 @@ $(document).ready(() => { e.preventDefault(); const courseId = $(this).parent().attr('data-courseId'); const $createVideoconferenceModal = $('.create-videoconference-modal'); + $createVideoconferenceModal.attr('data-testid', 'createVideoConference'); const moderatorCardClickHandler = () => { $.ajax({ diff --git a/views/courses/components/tools.hbs b/views/courses/components/tools.hbs index 0f8bf17968..266deda56e 100644 --- a/views/courses/components/tools.hbs +++ b/views/courses/components/tools.hbs @@ -53,7 +53,7 @@ {{#if this.isBBB}} -
+
{{$t "global.text.videoconferenceNotStartedYet"}} @@ -65,7 +65,7 @@
-
+
@@ -73,7 +73,7 @@ {{#userHasPermission "TOOL_CREATE" }} {{#unless @root.isArchived}} - @@ -81,7 +81,7 @@ {{/userHasPermission}}
-
+
@@ -90,7 +90,7 @@
-
+
{{$t "courses._course.tools.text.videoConferenceBBB"}}
diff --git a/views/lib/components/modal-form.hbs b/views/lib/components/modal-form.hbs index 50d291d6e6..43bbb23591 100644 --- a/views/lib/components/modal-form.hbs +++ b/views/lib/components/modal-form.hbs @@ -9,7 +9,7 @@ {{#block "fields"}}{{/block}}