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