mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
adapt feature step to selectFile
This commit is contained in:
parent
73f6bc6421
commit
c1a4ba12da
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user