From c105fb894ca51bc2406c46b947dc0c542d47e40a Mon Sep 17 00:00:00 2001 From: Felix Sommer Date: Mon, 18 Nov 2024 11:06:12 +0100 Subject: [PATCH] PB-1042: replace more information with news --- src/modules/i18n/locales/de.json | 2 +- src/modules/i18n/locales/en.json | 2 +- src/modules/i18n/locales/fr.json | 2 +- src/modules/i18n/locales/it.json | 2 +- src/modules/i18n/locales/rm.json | 2 +- src/modules/menu/components/help/MoreInfo.vue | 2 +- tests/cypress/tests-e2e/header.cy.js | 9 +++++++++ 7 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/modules/i18n/locales/de.json b/src/modules/i18n/locales/de.json index 50151abaad..655ff3d801 100644 --- a/src/modules/i18n/locales/de.json +++ b/src/modules/i18n/locales/de.json @@ -78,7 +78,7 @@ "choose_wms_url": "URL", "close": "Schliessen", "close_menu": "Menü schliessen", - "cms_link_button_title": "Mehr Informationen", + "cms_link_button_title": "Neuigkeiten", "cms_link_button_url": "https://www.geo.admin.ch/de/#News", "commune": "Gemeinde", "compare": "Vergleichen", diff --git a/src/modules/i18n/locales/en.json b/src/modules/i18n/locales/en.json index 87726fe119..8306d27cf6 100644 --- a/src/modules/i18n/locales/en.json +++ b/src/modules/i18n/locales/en.json @@ -78,7 +78,7 @@ "choose_wms_url": "URL", "close": "Close", "close_menu": "Close menu", - "cms_link_button_title": "More infomations", + "cms_link_button_title": "News", "cms_link_button_url": "https://www.geo.admin.ch/en/#News", "commune": "City", "compare": "Compare", diff --git a/src/modules/i18n/locales/fr.json b/src/modules/i18n/locales/fr.json index 3ac9454dc6..a1b38efbe6 100644 --- a/src/modules/i18n/locales/fr.json +++ b/src/modules/i18n/locales/fr.json @@ -78,7 +78,7 @@ "choose_wms_url": "URL", "close": "Fermer", "close_menu": "Fermer menu", - "cms_link_button_title": "Plus d'information", + "cms_link_button_title": "Actualités", "cms_link_button_url": "https://www.geo.admin.ch/fr/#News", "commune": "Commune", "compare": "Comparer", diff --git a/src/modules/i18n/locales/it.json b/src/modules/i18n/locales/it.json index 0b4fe76abf..3f70ab4976 100644 --- a/src/modules/i18n/locales/it.json +++ b/src/modules/i18n/locales/it.json @@ -78,7 +78,7 @@ "choose_wms_url": "URL", "close": "Chiudere", "close_menu": "Chiudere menu", - "cms_link_button_title": "Ulteriori informazioni", + "cms_link_button_title": "Notizie", "cms_link_button_url": "https://www.geo.admin.ch/it/#News", "commune": "Comune", "compare": "Confrontare", diff --git a/src/modules/i18n/locales/rm.json b/src/modules/i18n/locales/rm.json index 94af3dc2bd..ad75454b70 100644 --- a/src/modules/i18n/locales/rm.json +++ b/src/modules/i18n/locales/rm.json @@ -78,7 +78,7 @@ "choose_wms_url": "URL", "close": "Serrar", "close_menu": "Serrar menu", - "cms_link_button_title": "Dapli infurmaziuns", + "cms_link_button_title": "Novitats", "cms_link_button_url": "https://www.geo.admin.ch/de/#News", "commune": "Vischnanca", "compare": "Confruntar", diff --git a/src/modules/menu/components/help/MoreInfo.vue b/src/modules/menu/components/help/MoreInfo.vue index 0da6fb2fb5..493b2c4f06 100644 --- a/src/modules/menu/components/help/MoreInfo.vue +++ b/src/modules/menu/components/help/MoreInfo.vue @@ -22,7 +22,7 @@ function openCmsLink() { diff --git a/tests/cypress/tests-e2e/header.cy.js b/tests/cypress/tests-e2e/header.cy.js index d7953cb553..520ecee374 100644 --- a/tests/cypress/tests-e2e/header.cy.js +++ b/tests/cypress/tests-e2e/header.cy.js @@ -127,6 +127,15 @@ describe('Test functions for the header / search bar', () => { checkLangAndTopic('en', 'test-topic-standard') cy.readStoreValue('state.layers.activeLayers').should('have.length', 0) }) + // This test is not working because clicking the news button crashes cypress + // see https://github.com/cypress-io/cypress/issues/24084 for more information + it.skip('should show the news website when clicking on the News button', () => { + cy.viewport(1920, 1080) + cy.goToMapView() + cy.get('[data-cy="header-cms-link"]').click() + + cy.url().should('equal', 'https://www.geo.admin.ch/en/#News') + }) if (width >= BREAKPOINT_TABLET) { // desktop only it('reloads the app the same way as above when click on the confederation text', () => {