diff --git a/cypress.config.js b/cypress.config.js index d93eac9e..5d73a101 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -13,6 +13,6 @@ module.exports = defineConfig({ openMode: 0, }, e2e: { - baseUrl: "http://test_site_ui:8000", + baseUrl: "http://test:8000", }, }); diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index b8bdd28e..8ff62758 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -5,7 +5,7 @@ describe("Course Creation", () => { cy.visit("/lms/courses"); // Create a course - cy.get("a").contains("New").click(); + cy.get("header").children().last().children().last().click(); cy.wait(1000); cy.url().should("include", "/courses/new/edit"); @@ -73,7 +73,7 @@ describe("Course Creation", () => { .should("be.visible") .within(() => { cy.get("label").contains("Title").type("Test Chapter"); - cy.button("Add Chapter").click(); + cy.button("Create").click(); }); // Add Lesson diff --git a/frontend/src/components/CourseCard.vue b/frontend/src/components/CourseCard.vue index b5e84e3c..0a751668 100644 --- a/frontend/src/components/CourseCard.vue +++ b/frontend/src/components/CourseCard.vue @@ -30,29 +30,29 @@
-
+
- {{ course.lesson_count }} + {{ course.lessons }}
-
+
- {{ course.enrollment_count }} + {{ course.enrollments }}
-
+
- {{ course.avg_rating }} + {{ course.rating }}
diff --git a/frontend/src/components/CourseCardOverlay.vue b/frontend/src/components/CourseCardOverlay.vue index ea8d4409..24f5c5b3 100644 --- a/frontend/src/components/CourseCardOverlay.vue +++ b/frontend/src/components/CourseCardOverlay.vue @@ -93,21 +93,19 @@
- {{ course.data.lesson_count }} {{ __('Lessons') }} + {{ course.data.lessons }} {{ __('Lessons') }}
- {{ course.data.enrollment_count_formatted }} + {{ formatAmount(course.data.enrollments) }} {{ __('Enrolled Students') }}
- - {{ course.data.avg_rating }} {{ __('Rating') }} - + {{ course.data.rating }} {{ __('Rating') }}
@@ -116,7 +114,7 @@ import { BookOpen, Users, Star } from 'lucide-vue-next' import { computed, inject } from 'vue' import { Button, createResource } from 'frappe-ui' -import { showToast } from '@/utils/' +import { showToast, formatAmount } from '@/utils/' import { capture } from '@/telemetry' import { useRouter } from 'vue-router' diff --git a/frontend/src/components/CourseReviews.vue b/frontend/src/components/CourseReviews.vue index 2537531a..85b380ae 100644 --- a/frontend/src/components/CourseReviews.vue +++ b/frontend/src/components/CourseReviews.vue @@ -76,7 +76,7 @@ const props = defineProps({ required: true, }, avg_rating: { - type: Number, + type: String, required: true, }, membership: { diff --git a/frontend/src/components/LessonHelp.vue b/frontend/src/components/LessonHelp.vue index f850e350..ce84f3e0 100644 --- a/frontend/src/components/LessonHelp.vue +++ b/frontend/src/components/LessonHelp.vue @@ -21,7 +21,7 @@
@@ -56,6 +56,21 @@ }}
+ +
+
+ + {{ __('What does include in preview mean?') }} + +
+
+ {{ + __( + 'If Include in Preview is enabled for a lesson then the lesson will also be accessible to non logged in users.' + ) + }} +
+
diff --git a/frontend/src/components/Modals/ChapterModal.vue b/frontend/src/components/Modals/ChapterModal.vue index b804f28c..4ceda151 100644 --- a/frontend/src/components/Modals/ChapterModal.vue +++ b/frontend/src/components/Modals/ChapterModal.vue @@ -2,11 +2,11 @@
{{ diff --git a/frontend/src/pages/BatchForm.vue b/frontend/src/pages/BatchForm.vue index 01ce923c..865ae7f2 100644 --- a/frontend/src/pages/BatchForm.vue +++ b/frontend/src/pages/BatchForm.vue @@ -32,57 +32,65 @@
-
- - - -
-
- {{ __('Meta Image') }} -
+
+ {{ __('Meta Image') }} +
+ + + +
+
+ +
+ +
+ {{ + __( + 'Appears when the batch URL is shared on any online platform' + ) + }}
-
-
+
@@ -149,6 +158,7 @@ :label="__('Seat Count')" type="number" class="mb-4" + :placeholder="__('Number of seats available')" />
-
-
-
- {{ __('No {0} batches found').format(tab.label.toLowerCase()) }} -
-
+
+ {{ __('No {0} batches').format(tab.label.toLowerCase()) }}
+
+ +
+
+ +
+ {{ __('Create a Batch') }} +
+ + {{ __('You can link courses and assessments to it.') }} + +
+
+
+
+
+ +
+ {{ __('No batches found') }} +
+
+ {{ + __( + 'There are no batches available at the moment. Keep an eye out, fresh learning experiences are on the way soon!' + ) + }} +
+