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",