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 @@