From a22484359481270cfaa686c4eb48361a861c5038 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 30 Mar 2020 22:35:56 +0200 Subject: [PATCH] change plugin usage to attachFile --- cypress/integration/intergration.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cypress/integration/intergration.spec.js b/cypress/integration/intergration.spec.js index ab94bdec..3e1a43fa 100644 --- a/cypress/integration/intergration.spec.js +++ b/cypress/integration/intergration.spec.js @@ -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);