diff --git a/cypress/cypress.json b/cypress/cypress.json index 01122ec3ab..3cc6d4eb25 100644 --- a/cypress/cypress.json +++ b/cypress/cypress.json @@ -1,5 +1,5 @@ { - "fixturesFolder": false, + "fixturesFolder": "fixtures", "supportFile": "support", "integrationFolder": "integration", "pluginsFile": false, diff --git a/cypress/fixtures/images/tile.png b/cypress/fixtures/images/tile.png new file mode 100644 index 0000000000..a967301839 Binary files /dev/null and b/cypress/fixtures/images/tile.png differ diff --git a/cypress/integration/nav_create_path.js b/cypress/integration/nav_create_path.js index 932c81befd..6d23d12c82 100644 --- a/cypress/integration/nav_create_path.js +++ b/cypress/integration/nav_create_path.js @@ -12,6 +12,7 @@ describe('Create path', () => { beforeEach(() => { cy.setCookie('django_language', 'en'); Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Create path', () => { diff --git a/cypress/integration/nav_create_signage.js b/cypress/integration/nav_create_signage.js index 251c626703..0420a69b24 100644 --- a/cypress/integration/nav_create_signage.js +++ b/cypress/integration/nav_create_signage.js @@ -18,6 +18,7 @@ describe('Create signage', () => { beforeEach(() => { cy.setCookie('django_language', 'en'); Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Create signage', () => { diff --git a/cypress/integration/nav_create_trek.js b/cypress/integration/nav_create_trek.js index 7f2398bff0..1f4c85ef30 100644 --- a/cypress/integration/nav_create_trek.js +++ b/cypress/integration/nav_create_trek.js @@ -18,6 +18,7 @@ describe('Create trek', () => { beforeEach(() => { Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); cy.setCookie('django_language', 'en'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Create trek', () => { diff --git a/cypress/integration/nav_reports_workflow.js b/cypress/integration/nav_reports_workflow.js index 4484d41f39..89b2f97f68 100644 --- a/cypress/integration/nav_reports_workflow.js +++ b/cypress/integration/nav_reports_workflow.js @@ -11,6 +11,7 @@ describe('Nav reports workflow', () => { beforeEach(() => { Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); cy.setCookie('django_language', 'en'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Handles resolved intervention reports', () => { diff --git a/cypress/integration/nav_tabs.js b/cypress/integration/nav_tabs.js index c1945b22c7..88ab9c29e3 100644 --- a/cypress/integration/nav_tabs.js +++ b/cypress/integration/nav_tabs.js @@ -12,6 +12,7 @@ describe('Nav tabs properties/attachments', () => { beforeEach(() => { Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); cy.setCookie('django_language', 'en'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Use tabs', () => { diff --git a/cypress/integration/nav_tourism.js b/cypress/integration/nav_tourism.js index 3dacd5b27b..7fbe4ab46b 100644 --- a/cypress/integration/nav_tourism.js +++ b/cypress/integration/nav_tourism.js @@ -12,6 +12,7 @@ describe('Create tourism event', () => { beforeEach(() => { cy.setCookie('django_language', 'en'); Cypress.Cookies.preserveOnce('sessionid', 'csrftoken'); + cy.intercept("https://*.tile.opentopomap.org/*/*/*.png", {fixture: "images/tile.png"}) }); it('Should dynamicly show/hide cancellation reason', () => {