diff --git a/cypress/e2e/playground.cy.js b/cypress/e2e/playground.cy.js index 208480e..fde3403 100644 --- a/cypress/e2e/playground.cy.js +++ b/cypress/e2e/playground.cy.js @@ -295,4 +295,10 @@ describe('Cypress Playground', () => { .should('not.be.visible') }) }) + + it('downloads a file, reads it, and assert on its content', () => { + cy.contains('a', 'Download a text file').click() + + cy.readFile('cypress/downloads/example.txt').should('be.equal', 'Hello, World!') + }) })