I'm new to Cypress, I want to know how to write data to xlsx file, I tried writing this way but it can't open xlsx file.
cy.writeFile('cypress/fixtures/DataTest/login_result.xlsx', '\nUsername : ' + Username + '\n' + '\nPassword : ' + Password + '\n' + '\nExpectedResult : ' + ExpectedResult + '\n' + '\nActualResult : ' + Asresult + '\n' + '\nResult :' + result + '\n').as('writeXlsxFile')
node-xlsxlibrary is mentioned, so perhaps you can have a look into it.