Coder Social home page Coder Social logo

javieraviles / cypress-upload-file-post-form Goto Github PK

View Code? Open in Web Editor NEW
60.0 6.0 7.0 21 KB

Solution for two Cypress testing use-cases I came across with: perform a direct http FORM request to the server containing a file and other parameters and upload a file into a form before submission

License: MIT License

JavaScript 100.00%
cypress file file-upload submit form form-data post request http xmlhttprequest

cypress-upload-file-post-form's People

Contributors

javieraviles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cypress-upload-file-post-form's Issues

Is there a way to change download location from cypress/downloads to Fixtures folder??

Hi I'm downloading a file from a site and uploading the same downloaded file in the same test run. But In order to upload the file, it asks me to have the file in the fixture folder.

Is there a way for me to change the default download location to fixtures and if that's not possible, how can I upload a file from my cypress/downloads folder. When I use the filepath from there, it gives me the following error:

"A fixture file could not be found at any of the following paths:

apps/mosaic-e2e/src/fixtures/.../cypress/downloads/test-non-date-based.json
apps/mosaic-e2e/src/fixtures/.../cypress/downloads/test-non-date-based.json{{extension}}

Cypress looked for these file extensions at the provided path:

.json, .js, .coffee, .html, .txt, .csv, .png, .jpg, .jpeg, .gif, .tif, .tiff, .zip

Provide a path to an existing fixture file."

Is there a way to move a file from downloads to fixtures as the test runs?? < one other way i was thinking

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.