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
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 {
login,
@ -18,14 +17,7 @@ function uploadMediaFile() {
assertNoImagesInLibrary();
const fixture = 'media/netlify.png';
cy.fixture(fixture).then(fileContent => {
cy.get('input[type="file"]').upload({
fileContent,
fileName: path.basename(fixture),
mimeType: 'image/png',
});
});
cy.get('input[type="file"]').attachFile(fixture);
cy.contains('span', 'Uploading...').should('not.exist');
assertImagesInLibrary();