test: attach course image if selector is hidden

This commit is contained in:
Jannat Patel
2025-04-21 10:33:24 +05:30
parent f6008cf46a
commit e821755721

View File

@@ -19,7 +19,7 @@ describe("Course Creation", () => {
); );
cy.fixture("profile.png", "base64").then((fileContent) => { cy.fixture("profile.png", "base64").then((fileContent) => {
cy.get('input[type="file"]').attachFile({ cy.get('input[type="file"]').should("be.hidden").attachFile({
fileContent, fileContent,
fileName: "profile.png", fileName: "profile.png",
mimeType: "image/png", mimeType: "image/png",