adapt feature step to selectFile

This commit is contained in:
mahula 2023-07-10 21:58:53 +02:00
parent 73f6bc6421
commit c1a4ba12da

View File

@ -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")