Download the File and Read in Cypress Automation Step 1: plugin/index.js – Put this in the module.exports function: const fs = require(‘fs’); const hasFiles = (downloadsFolder) => { const data = fs.readdirSync(downloadsFolder, ‘utf-8’); return data.length > 0; }; on(‘task’, { ...
Home/Read downloaded file in cypress