Javascript – Cypress.io dynamic test generation with asynchronous data
I have a data driven cypress code like below. I'm trying to generate tests dynamically based on the values of "data" variable. let data:QuestionData[]; describe("Add data to admin", ()=>{ before(async ()=>{ data = await promisify(cy.task("readCSV",csvFile)); }); data.forEach((val,index)=>{ it(`Should add val…