diff --git a/README.md b/README.md index 20f0da854..6a0cadcde 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,7 @@ Get around the lack of a `.hover()` command. - Use [`.trigger()`](https://on.cypress.io/trigger) to test drag-n-drop that uses mouse events. - Use [`.trigger()`](https://on.cypress.io/trigger) to test drag-n-drop that uses drag events. +- Use [`cypress-file-upload`](https://github.com/abramenal/cypress-file-upload) for file upload testing with drag-n-drop. ### [grep](./examples/preprocessors__grep) @@ -304,6 +305,7 @@ Get around the lack of a `.hover()` command. - Passing synthetic test file to upload via an [`.trigger('change')`](https://on.cypress.io/trigger) event - Stub remote server using [`cy.route()`](https://on.cypress.io/route) - Alternatively stub `axios.post` method using [`cy.stub()`](https://on.cypress.io/stub) +- Alternatively use [`cypress-file-upload`](https://github.com/abramenal/cypress-file-upload) for file upload testing. ### [Adding Chai Assertions](./examples/extending-cypress__chai-assertions) diff --git a/examples/file-upload-react/README.md b/examples/file-upload-react/README.md index f5dc19395..34c9ae54d 100644 --- a/examples/file-upload-react/README.md +++ b/examples/file-upload-react/README.md @@ -7,3 +7,5 @@ Key concepts - Passing synthetic test file to upload via an [`.trigger('change')`](https://on.cypress.io/trigger) event - Stub remote server using [`cy.route()`](https://on.cypress.io/route) - Alternatively stub `axios.post` method using [`cy.stub()`](https://on.cypress.io/stub) + +Alternatively use [`cypress-file-upload`](https://github.com/abramenal/cypress-file-upload) for file upload testing. diff --git a/examples/testing-dom__drag-drop/README.md b/examples/testing-dom__drag-drop/README.md index 0a7108eaf..9e13665fc 100644 --- a/examples/testing-dom__drag-drop/README.md +++ b/examples/testing-dom__drag-drop/README.md @@ -8,3 +8,5 @@ See test file [cypress/integration/drag_n_drop_spec.js](cypress/integration/drag - drag events In both cases, the tests use [`cy.trigger`](https://on.cypress.io/trigger) command. + +Alternatively use [`cypress-file-upload`](https://github.com/abramenal/cypress-file-upload) if you test file upload with drag-n-drop component