From 3858cdfc7987cd1a1789e1bba8b61127073cb5e4 Mon Sep 17 00:00:00 2001
From: Elia Bieri
Date: Thu, 11 May 2023 12:48:33 +0000
Subject: [PATCH] Merged in bugfix/auftrag_ui_test_rework (pull request #80)
Auftrag UI Test rework
* UI test rework
* Fix cypress tests
---
client/src/components/ui/ItSuccessAlert.vue | 2 +-
.../assignment/AssignmentIntroductionView.vue | 13 ++++++++++---
.../assignment/AssignmentSubmissionView.vue | 7 ++++---
.../assignment/AssignmentTaskView.vue | 1 +
.../assignment/AssignmentView.vue | 4 ++--
.../layouts/LearningContentFooter.vue | 2 +-
.../layouts/LearningContentMultiLayout.vue | 6 ++++--
7 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/client/src/components/ui/ItSuccessAlert.vue b/client/src/components/ui/ItSuccessAlert.vue
index e5aa78f1..e3709a8e 100644
--- a/client/src/components/ui/ItSuccessAlert.vue
+++ b/client/src/components/ui/ItSuccessAlert.vue
@@ -7,6 +7,6 @@ defineProps<{
-
{{ text }}
+
{{ text }}
diff --git a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue
index 685e1a6d..56ccdc13 100644
--- a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue
+++ b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentIntroductionView.vue
@@ -1,5 +1,6 @@
@@ -27,9 +30,13 @@ const props = withDefaults(defineProps(), {
{{ $t("assignment.taskDefinition") }}
- -
- -
- {{ task.value.title }}
+
-
+
diff --git a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue
index 140cb3b1..fd045272 100644
--- a/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue
+++ b/client/src/pages/learningPath/learningContentPage/assignment/AssignmentSubmissionView.vue
@@ -73,7 +73,7 @@ const onSubmit = async () => {
-
+
-
+
![Notification icon]()
{
v-html="block.value.text"
>
{
:title="getTitle()"
learning-content-type="assignment"
:steps-count="numPages"
- :show-next-button="showNextButton"
+ :show-next-button="showNextButton && stepIndex !== 0"
:show-exit-button="showExitButton"
- :show-start-button="false"
+ :show-start-button="showNextButton && stepIndex === 0"
:show-previous-button="showPreviousButton"
:base-url="props.learningContent.frontend_url"
step-query-param="step"
diff --git a/client/src/pages/learningPath/learningContentPage/layouts/LearningContentFooter.vue b/client/src/pages/learningPath/learningContentPage/layouts/LearningContentFooter.vue
index 9f0eaeab..c77d0147 100644
--- a/client/src/pages/learningPath/learningContentPage/layouts/LearningContentFooter.vue
+++ b/client/src/pages/learningPath/learningContentPage/layouts/LearningContentFooter.vue
@@ -53,7 +53,7 @@ defineEmits(["start", "previous", "next"]);
v-if="props.showStartButton"
type="button"
class="btn-blue z-10 flex items-center"
- data-cy="start"
+ data-cy="next-step"
@click="$emit('start')"
>
{{ $t("general.start") }}
diff --git a/client/src/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue b/client/src/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue
index fc51c65b..be80be49 100644
--- a/client/src/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue
+++ b/client/src/pages/learningPath/learningContentPage/layouts/LearningContentMultiLayout.vue
@@ -28,6 +28,8 @@ const props = withDefaults(defineProps(), {
startBadgeText: undefined,
endBadgeText: undefined,
closeButtonVariant: "mark_as_done",
+ baseUrl: undefined,
+ stepQueryParam: undefined,
});
const emit = defineEmits(["previous", "next", "exit"]);
@@ -37,13 +39,13 @@ const emit = defineEmits(["previous", "next", "exit"]);