diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 7f073c62..b7a67bc9 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -115,7 +115,7 @@ describe("Course Creation", () => { .invoke("css", "background-image") .should("include", "/files/profile"); }); - cy.get(".grid a:first").click(); + cy.get("div").contains("Test Course").closest("a").click(); cy.url().should("include", "/lms/courses/test-course"); cy.get("div").contains("Test Course"); cy.get("div").contains("Test Course Short Introduction to test the UI");