change plugin usage to attachFile

This commit is contained in:
Karol Wypchlo 2020-03-30 22:35:56 +02:00
parent 9b5a5a6bba
commit a224843594
1 changed files with 1 additions and 3 deletions

View File

@ -17,9 +17,7 @@ context("Skynet", () => {
const fileName = "check.json";
cy.fixture(fileName).then((fileContent) => {
cy.get('.home-upload input[type="file"]').upload({ fileContent, fileName, mimeType: "application/json" });
});
cy.get('.home-upload input[type="file"]').attachFile(fileName);
cy.get(".home-uploaded-files").children().should("have.length", 1);