From e821755721e14d706186db17d5904b0d3de47cb4 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Mon, 21 Apr 2025 10:33:24 +0530 Subject: [PATCH] test: attach course image if selector is hidden --- cypress/e2e/course_creation.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index 7d20fdcb..d65b1d0f 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -19,7 +19,7 @@ describe("Course Creation", () => { ); cy.fixture("profile.png", "base64").then((fileContent) => { - cy.get('input[type="file"]').attachFile({ + cy.get('input[type="file"]').should("be.hidden").attachFile({ fileContent, fileName: "profile.png", mimeType: "image/png",