test: click the div of the test course and not the first card

This commit is contained in:
Jannat Patel
2026-03-09 10:50:46 +05:30
parent 711d89b603
commit cb273685a7
+1 -1
View File
@@ -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");