E2E Testing of Excel Downloads with Cypressby@vivek-nayyar
2,558 reads

E2E Testing of Excel Downloads with Cypress

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

E2E Testing of Excel Downloads with Cypress.io is written by Vivek Nayyar. This article assumes a basic understanding of cypress.io. The test that we will write will go inside a new file inside the project’s testspec.js folder. After clicking on it, the file should ideally have been downloaded and now we need to somehow read that file and check if it exists and if it consists of the right data in it. With this we can finally be the assertion rule to check that the data we can be/have the data that we expected.

Company Mentioned

Mention Thumbnail
featured image - E2E Testing of Excel Downloads with Cypress
Vivek Nayyar HackerNoon profile picture

@vivek-nayyar

Vivek Nayyar

👋 Senior Software Engineer with 5 years' of experience building products for numerous domains.


Receive Stories from @vivek-nayyar

react to story with heart
Vivek Nayyar HackerNoon profile picture
by Vivek Nayyar @vivek-nayyar.👋 Senior Software Engineer with 5 years' of experience building products for numerous domains.
Read My Stories

RELATED STORIES

L O A D I N G
. . . comments & more!