Cypress upload .csv to a site using #14637
Unanswered
Supanovas
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently building a test that requires a .csv file to be uploaded to the site and verify that the document is visible.
I've tried a few ways but the uploaded file isn't visible on the site.
The test runs but nothing appears to be physically uploaded to the site. Any idea as to what I could be doing wrong
Here's what I've tried so far
Installed - npm install --save-dev cypress-file-upload
Codes used to upload file below:
Example 1
` const fileName = 'uploadfile.csv';
Example 2
`cy.fixture('TestCSVUpload.csv').then(fileContent => {
`
Beta Was this translation helpful? Give feedback.
All reactions