I am having issues with uploading a csv file to test in cypress so I am successful in uploading the file and clicking the submit button but the fields do not upload with new information which is in the csv.
cy.fixture('contentData.csv').then((fileContent) => {
cy.get('input[type="file"]').attachFile({
fileContent: fileContent.toString(),
fileName: 'contentData.csv',
mimeType: 'text/csv',
});
});
I was hoping someone can tell me where i am going wrong?