diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 6d9fadb1..47a592d9 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -11,7 +11,6 @@ describe("Course Creation", () => { cy.get("button").contains("Create").click(); cy.get("span").contains("New Course").click(); cy.wait(500); - cy.url().should("include", "/courses/new/edit"); cy.get("label").contains("Title").type("Test Course"); cy.get("label") @@ -35,21 +34,6 @@ describe("Course Creation", () => { }); }); - cy.get("label") - .contains("Preview Video") - .type("https://www.youtube.com/embed/-LPmw2Znl2c"); - cy.get("[id=tags]").type("Learning{enter}Frappe{enter}ERPNext{enter}"); - cy.get("label") - .contains("Category") - .parent() - .within(() => { - cy.get("button").click(); - }); - cy.get("[id^=headlessui-combobox-option-") - .should("be.visible") - .first() - .click(); - /* Instructor */ cy.get("label") .contains("Instructors") @@ -69,13 +53,32 @@ describe("Course Creation", () => { }); }); + cy.button("Create").last().click(); + + // Edit Course Details + cy.wait(500); + cy.get("label") + .contains("Preview Video") + .type("https://www.youtube.com/embed/-LPmw2Znl2c"); + cy.get("[id=tags]").type("Learning{enter}Frappe{enter}ERPNext{enter}"); + cy.get("label") + .contains("Category") + .parent() + .within(() => { + cy.get("button").click(); + }); + cy.get("[id^=headlessui-combobox-option-") + .should("be.visible") + .first() + .click(); + cy.get("label").contains("Published").click(); cy.get("label").contains("Published On").type("2021-01-01"); cy.button("Save").click(); // Add Chapter cy.wait(1000); - cy.button("Add Chapter").click(); + cy.button("Add").click(); cy.wait(1000); cy.get("[data-dismissable-layer]") diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 1292ad68..2ce38f23 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -54,7 +54,6 @@ declare module 'vue' { CourseCardOverlay: typeof import('./src/components/CourseCardOverlay.vue')['default'] CourseInstructors: typeof import('./src/components/CourseInstructors.vue')['default'] CourseOutline: typeof import('./src/components/CourseOutline.vue')['default'] - CourseProgressSummary: typeof import('./src/components/Modals/CourseProgressSummary.vue')['default'] CourseReviews: typeof import('./src/components/CourseReviews.vue')['default'] CreateOutline: typeof import('./src/components/CreateOutline.vue')['default'] DateRange: typeof import('./src/components/Common/DateRange.vue')['default'] diff --git a/frontend/src/pages/Courses/CourseDashboard.vue b/frontend/src/pages/Courses/CourseDashboard.vue index a802ae59..f5b75a44 100644 --- a/frontend/src/pages/Courses/CourseDashboard.vue +++ b/frontend/src/pages/Courses/CourseDashboard.vue @@ -20,7 +20,7 @@
-
+
{{ __('Students') }} @@ -120,7 +120,7 @@
-
+
{{ __('Progress Summary') }}
diff --git a/frontend/src/pages/Courses/NewCourseModal.vue b/frontend/src/pages/Courses/NewCourseModal.vue index 46389790..eff45643 100644 --- a/frontend/src/pages/Courses/NewCourseModal.vue +++ b/frontend/src/pages/Courses/NewCourseModal.vue @@ -1,82 +1,82 @@ \ No newline at end of file + diff --git a/lms/lms/doctype/lms_course_review/lms_course_review.json b/lms/lms/doctype/lms_course_review/lms_course_review.json index 3eab43fb..4ac6be0c 100644 --- a/lms/lms/doctype/lms_course_review/lms_course_review.json +++ b/lms/lms/doctype/lms_course_review/lms_course_review.json @@ -38,10 +38,11 @@ "fieldtype": "Column Break" } ], + "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2023-12-21 15:25:16.744558", - "modified_by": "Administrator", + "modified": "2026-01-29 16:10:47.787285", + "modified_by": "sayali@frappe.io", "module": "LMS", "name": "LMS Course Review", "owner": "Administrator", @@ -60,7 +61,6 @@ }, { "create": 1, - "delete": 1, "email": 1, "export": 1, "print": 1, @@ -69,12 +69,49 @@ "role": "LMS Student", "share": 1, "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Moderator", + "share": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Course Creator", + "share": 1, + "write": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Batch Evaluator", + "share": 1, + "write": 1 } ], + "row_format": "Dynamic", "search_fields": "course", "sort_field": "modified", "sort_order": "DESC", "states": [], "title_field": "course", "track_changes": 1 -} \ No newline at end of file +}