I am trying to use a file download option in cypress. So in the website which i click the export button it downloads a pdf file. In cypress i have installed the download file plugin and then added the required code in command.js (
require('cypress-downloadfile/lib/downloadFileCommand')) and in config.js (
const {downloadFile} = require('cypress-downloadfile/lib/addPlugin')
module.exports = (on, config) => {
on('task', {downloadFile})
}
)
now in the test file when i click on the button i should see the file downloaded in the download folder right? or i am missing something?
right now i can see that the pdf file is opened in new windows but there is no file download.