chore(deps): update dependency cypress-file-upload to v4 (#4164)

* chore(deps): update dependency cypress-file-upload to v4

* test(e2e-media-lib): update upload file command usage

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2020-08-17 14:18:01 +03:00 committed by GitHub
parent 160ff1b9fa
commit 43612192a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 14 deletions

View File

@ -1,4 +1,3 @@
import path from 'path';
import '../../utils/dismiss-local-backup'; import '../../utils/dismiss-local-backup';
import { import {
login, login,
@ -18,14 +17,7 @@ function uploadMediaFile() {
assertNoImagesInLibrary(); assertNoImagesInLibrary();
const fixture = 'media/netlify.png'; const fixture = 'media/netlify.png';
cy.fixture(fixture).then(fileContent => { cy.get('input[type="file"]').attachFile(fixture);
cy.get('input[type="file"]').upload({
fileContent,
fileName: path.basename(fixture),
mimeType: 'image/png',
});
});
cy.contains('span', 'Uploading...').should('not.exist'); cy.contains('span', 'Uploading...').should('not.exist');
assertImagesInLibrary(); assertImagesInLibrary();

View File

@ -120,7 +120,7 @@
"cross-env": "^7.0.0", "cross-env": "^7.0.0",
"css-loader": "^3.0.0", "css-loader": "^3.0.0",
"cypress": "^4.6.0", "cypress": "^4.6.0",
"cypress-file-upload": "^3.5.1", "cypress-file-upload": "^4.0.0",
"cypress-image-snapshot": "^3.1.1", "cypress-image-snapshot": "^3.1.1",
"cypress-jest-adapter": "^0.1.1", "cypress-jest-adapter": "^0.1.1",
"cypress-plugin-tab": "^1.0.0", "cypress-plugin-tab": "^1.0.0",

View File

@ -6612,10 +6612,12 @@ cyclist@^1.0.1:
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk= integrity sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=
cypress-file-upload@^3.5.1: cypress-file-upload@^4.0.0:
version "3.5.3" version "4.0.7"
resolved "https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-3.5.3.tgz#cd706485de3fb2cbd4a8c2dd90fe96d537bb4311" resolved "https://registry.yarnpkg.com/cypress-file-upload/-/cypress-file-upload-4.0.7.tgz#1136139bb3c660b9c39a69f231ac1da7785acaae"
integrity sha512-S/czzqAj1BYz6Xxnfpx2aSc6hXsj76fd8/iuycJ2RxoxCcQMliw8eQV0ugzVlkzr1GD5dKGviNFGYqv3nRJ+Tg== integrity sha512-rFFmnoZ2bWyWFpSV09AhkSUgYEiVy70pcQ6nf/mGTMTrVHvKCCCIfRu3TbgVYHbgBq+0hqjfjQrtz4IbgH7qZA==
dependencies:
mime "^2.4.4"
cypress-image-snapshot@^3.1.1: cypress-image-snapshot@^3.1.1:
version "3.1.1" version "3.1.1"