From 9b5a5a6bba73499492fa274996c21b31a4c1dbb6 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Mar 2020 20:33:30 +0000 Subject: [PATCH 1/2] Bump cypress-file-upload from 3.5.3 to 4.0.4 Bumps [cypress-file-upload](https://github.com/abramenal/cypress-file-upload) from 3.5.3 to 4.0.4. - [Release notes](https://github.com/abramenal/cypress-file-upload/releases) - [Commits](https://github.com/abramenal/cypress-file-upload/compare/v3.5.3...v4.0.4) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- yarn.lock | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 46942ba0..9cffb7d3 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ }, "devDependencies": { "cypress": "^4.2.0", - "cypress-file-upload": "^3.5.3", + "cypress-file-upload": "^4.0.4", "eslint": "^6.8.0", "eslint-config-prettier": "^6.10.1", "eslint-plugin-cypress": "^2.10.3", diff --git a/yarn.lock b/yarn.lock index 299935c9..1a674822 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3746,10 +3746,12 @@ cyclist@^1.0.1: resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= -cypress-file-upload@^3.5.3: - version "3.5.3" - resolved "https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-3.5.3.tgz#cd706485de3fb2cbd4a8c2dd90fe96d537bb4311" - integrity sha512-S/czzqAj1BYz6Xxnfpx2aSc6hXsj76fd8/iuycJ2RxoxCcQMliw8eQV0ugzVlkzr1GD5dKGviNFGYqv3nRJ+Tg== +cypress-file-upload@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-4.0.4.tgz#21863212267b2c31f5e824fc57e5cd445aa3635f" + integrity sha512-q04HoVb8OQTpusHOadGER+9Dvif7kfoM8MjVAF37O+X5VEZlUARbXrKECH6pUH0vKmWRGcrsoB6mKah9ZJa4Pw== + dependencies: + mime "^2.4.4" cypress@^4.2.0: version "4.2.0" From a22484359481270cfaa686c4eb48361a861c5038 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 30 Mar 2020 22:35:56 +0200 Subject: [PATCH 2/2] 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);