From da5910d40d7bfff6adbdc4dc84304952c6951284 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Wed, 30 Oct 2024 23:11:47 +0530 Subject: [PATCH] test: changed labels as per new onboarding --- cypress.config.js | 2 +- cypress/e2e/course_creation.cy.js | 4 ++-- lms/lms/doctype/lms_course/lms_course.json | 5 ++++- 3 files changed, 7 insertions(+), 4 deletions(-) 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/lms/lms/doctype/lms_course/lms_course.json b/lms/lms/doctype/lms_course/lms_course.json index 99f6ed8a..beae4cd0 100644 --- a/lms/lms/doctype/lms_course/lms_course.json +++ b/lms/lms/doctype/lms_course/lms_course.json @@ -265,18 +265,21 @@ "fieldtype": "Section Break" }, { + "default": "0", "fieldname": "enrollments", "fieldtype": "Data", "label": "Enrollments", "read_only": 1 }, { + "default": "0", "fieldname": "lessons", "fieldtype": "Data", "label": "Lessons", "read_only": 1 }, { + "default": "0", "fieldname": "rating", "fieldtype": "Data", "label": "Rating", @@ -307,7 +310,7 @@ } ], "make_attachments_public": 1, - "modified": "2024-10-30 12:48:41.184763", + "modified": "2024-10-30 23:08:31.842860", "modified_by": "Administrator", "module": "LMS", "name": "LMS Course",