From 6b6061a73055b9f061431ecea44c971cf48dafce Mon Sep 17 00:00:00 2001 From: bsilkyn Date: Wed, 22 May 2024 18:33:54 +0200 Subject: [PATCH] test: course make and course enroll test with id's applied where necessary #434 --- backend/authentication/views.py | 1 + frontend/src/components/courses/CourseDetailCard.vue | 2 +- frontend/src/components/courses/CourseDetailList.vue | 2 +- frontend/src/components/courses/CourseForm.vue | 2 +- .../courses/students/StudentCourseJoinButton.vue | 1 + frontend/src/components/projects/ProjectList.vue | 2 +- .../views/dashboard/roles/TeacherDashboardView.vue | 12 ++++++++---- test.sh | 7 ++++--- 8 files changed, 18 insertions(+), 11 deletions(-) diff --git a/backend/authentication/views.py b/backend/authentication/views.py index ca985f31..f5745821 100644 --- a/backend/authentication/views.py +++ b/backend/authentication/views.py @@ -105,6 +105,7 @@ def login_professor(self, request, *__) -> Response: user, created = create_user(self, request, settings.TEST_PROFESSOR_DATA) if created: Teacher.create(user) + return response @action(detail=False, methods=['POST'], permission_classes=[IsDebug], url_path='multi') def login_multi(self, request, *__) -> Response: diff --git a/frontend/src/components/courses/CourseDetailCard.vue b/frontend/src/components/courses/CourseDetailCard.vue index 049ee0f3..ce92fc59 100644 --- a/frontend/src/components/courses/CourseDetailCard.vue +++ b/frontend/src/components/courses/CourseDetailCard.vue @@ -19,7 +19,7 @@ const { getImport } = useGlob(import.meta.glob('@/assets/img/faculties/*.png', { - + {{ t('components.list.noCourses.student') }} - + diff --git a/frontend/src/components/courses/CourseForm.vue b/frontend/src/components/courses/CourseForm.vue index 8cf979c1..38f60a9f 100644 --- a/frontend/src/components/courses/CourseForm.vue +++ b/frontend/src/components/courses/CourseForm.vue @@ -122,7 +122,7 @@ watchEffect(() => { - + diff --git a/frontend/src/components/courses/students/StudentCourseJoinButton.vue b/frontend/src/components/courses/students/StudentCourseJoinButton.vue index 34da3478..43a38921 100644 --- a/frontend/src/components/courses/students/StudentCourseJoinButton.vue +++ b/frontend/src/components/courses/students/StudentCourseJoinButton.vue @@ -66,6 +66,7 @@ async function leaveCourse(): Promise { (() => { {{ t('components.list.noProjects.student') }} - + diff --git a/frontend/src/views/dashboard/roles/TeacherDashboardView.vue b/frontend/src/views/dashboard/roles/TeacherDashboardView.vue index 6f0faf55..76bec7f8 100644 --- a/frontend/src/views/dashboard/roles/TeacherDashboardView.vue +++ b/frontend/src/views/dashboard/roles/TeacherDashboardView.vue @@ -59,7 +59,11 @@ watchImmediate( {{ t('views.dashboard.projects') }} - + @@ -79,7 +83,7 @@ watchImmediate( {{ t('components.list.noCourses.teacher') }}
{{ t('components.list.noCourses.student') }}
{{ t('components.list.noProjects.student') }}
{{ t('components.list.noCourses.teacher') }}