From d42cac30c8d529ee4813df16835455b09fa6a9ca Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 11 Jul 2023 09:59:38 +0200 Subject: [PATCH] add file content to file selection in test step --- .../I_should_be_able_to_change_my_profile_picture.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js index 2ebe686f2..d01939cc6 100644 --- a/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js +++ b/cypress/support/step_definitions/UserProfile.Avatar/I_should_be_able_to_change_my_profile_picture.js @@ -5,7 +5,7 @@ Then("I should be able to change my profile picture", () => { cy.fixture(avatarUpload, "base64").then(fileContent => { cy.get("#customdropzone").selectFile( - { fileName: avatarUpload, mimeType: "image/png" }, + { contents: `../../../fixtures/${avatarUpload}`, fileName: avatarUpload, mimeType: "image/png" }, { action: "drag-drop" } ); });