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

(cherry picked from commit cb273685a7)
This commit is contained in:
Jannat Patel
2026-03-09 10:50:46 +05:30
committed by Mergify
parent 2ae2618ce4
commit dd96f18d2d

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");