Skip to content

Commit d61ba09

Browse files
committed
test: extend download tests for json file
1 parent 0e421a6 commit d61ba09

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cypress/e2e/download.cy.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ describe('download functionality', function () {
2727
'profile': 'driving-car',
2828
'preference': 'recommended'
2929
})
30-
// TODO: extend download tests. Aliasing the readFile with as(..) doesn't work
31-
// cy.get('@response').its('places[0].placeName').should('eq', 'Mannheim, BW,Germany')
32-
// cy.get('@response').its('mode').should('eq', 'directions')
33-
// cy.get('@response').its('isRouteData').should('eq', 'directions')
30+
cy.readFile(filePath).its('places[0].placeName').should('eq', 'Mannheim, BW,Germany')
31+
cy.readFile(filePath).its('mode').should('eq', 'directions')
32+
cy.readFile(filePath).its('isRouteData').should('eq', true)
3433
})
3534
it('downloads a geojson file', () => {
3635
const filePath = downloadFile('GeoJSON', 'json')

0 commit comments

Comments
 (0)