Skip to content

Commit

Permalink
test: add cypress test for /download path
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Jan 11, 2024
1 parent d23c1f9 commit 71d13ae
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cypress/integration/smoke.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,16 @@ context('Smoke Test', () => {
cy.get('canvas.maplibregl-canvas').should('be.visible')
cy.get('button').contains('Exit download mode').should('be.visible')
})

it('loads download page for new map', () => {
cy.intercept('**/userDataStore/analytics/settings', {
fixture: 'analyticalObject.json',
})

cy.visit('/#/download', EXTENDED_TIMEOUT)

cy.getByDataTest('download-settings').should('be.visible')
cy.get('canvas.maplibregl-canvas').should('be.visible')
cy.get('button').contains('Exit download mode').should('be.visible')
})
})

0 comments on commit 71d13ae

Please sign in to comment.