From c1a4ba12da2007f55e49496621beabd15840f19b Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 10 Jul 2023 21:58:53 +0200 Subject: [PATCH] adapt feature step to selectFile --- .../I_should_be_able_to_change_my_profile_picture.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 27be5a99d..b13d115a7 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 @@ -4,9 +4,9 @@ Then("I should be able to change my profile picture", () => { const avatarUpload = "onourjourney.png"; cy.fixture(avatarUpload, "base64").then(fileContent => { - cy.get("#customdropzone").upload( - { fileContent, fileName: avatarUpload, mimeType: "image/png" }, - { subjectType: "drag-n-drop", force: true } + cy.get("#customdropzone").selectFile( + { fileName: avatarUpload, mimeType: "image/png" }, + { action: 'drag-drop' } ); }); cy.get(".profile-page-avatar img")