'Compare csv data with ui in Cypress

I need to implement following flow in Cypress:

  • Download CSV file
  • Read it and match it with data showed on UI

How do I do this?

CheckCSV() {
    cy.get("[selector").should("be.visible").click();
    cy.wait(2000);
    cy.readFile();
}

No idea how to make it with readfile.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source