Skip to content

Commit

Permalink
test: extend download tests for json file
Browse files Browse the repository at this point in the history
  • Loading branch information
Seli0303 committed Jun 18, 2024
1 parent 45e42b4 commit 396b8cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cypress/e2e/download.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ describe('download functionality', function () {
'profile': 'driving-car',
'preference': 'recommended'
})
// TODO: extend download tests. Aliasing the readFile with as(..) doesn't work
// cy.get('@response').its('places[0].placeName').should('eq', 'Mannheim, BW,Germany')
// cy.get('@response').its('mode').should('eq', 'directions')
// cy.get('@response').its('isRouteData').should('eq', 'directions')
cy.readFile(filePath).its('places[0].placeName').should('eq', 'Mannheim, BW,Germany')
cy.readFile(filePath).its('mode').should('eq', 'directions')
cy.readFile(filePath).its('isRouteData').should('eq', true)
})
it('downloads a geojson file', () => {
const filePath = downloadFile('GeoJSON', 'json')
Expand Down

0 comments on commit 396b8cd

Please sign in to comment.