Skip to content

Commit

Permalink
Add test for the download/readFile feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsf82 committed May 31, 2024
1 parent 03365d6 commit e112b5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/e2e/playground.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!')
})
})

0 comments on commit e112b5d

Please sign in to comment.