diff --git a/cypress/e2e/course_creation.cy.js b/cypress/e2e/course_creation.cy.js index d65b1d0f..69c0f1ca 100644 --- a/cypress/e2e/course_creation.cy.js +++ b/cypress/e2e/course_creation.cy.js @@ -19,12 +19,23 @@ describe("Course Creation", () => { ); cy.fixture("profile.png", "base64").then((fileContent) => { - cy.get('input[type="file"]').should("be.hidden").attachFile({ + /* cy.get('input[type="file"]').should("be.hidden").attachFile({ fileContent, fileName: "profile.png", mimeType: "image/png", encoding: "base64", - }); + }); */ + + cy.get("div") + .contains("Course Image") + .siblings("div") + .children('input[type="file"]') + .attachFile({ + fileContent, + fileName: "profile.png", + mimeType: "image/png", + encoding: "base64", + }); }); cy.get("label")