From 71d13ae1d4d36c78b53d60080111e0cb20ac2901 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Thu, 11 Jan 2024 16:28:46 +0100 Subject: [PATCH] test: add cypress test for /download path --- cypress/integration/smoke.cy.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cypress/integration/smoke.cy.js b/cypress/integration/smoke.cy.js index adf538d2b..e9011a5de 100644 --- a/cypress/integration/smoke.cy.js +++ b/cypress/integration/smoke.cy.js @@ -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') + }) })