Skip to content

Commit

Permalink
PB-1042: replace more information with news
Browse files Browse the repository at this point in the history
  • Loading branch information
sommerfe committed Nov 26, 2024
1 parent 0e9fc33 commit c105fb8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/modules/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n/locales/rm.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/modules/menu/components/help/MoreInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function openCmsLink() {
</script>

<template>
<HeaderLink :show-as-button="showAsButton" @click="openCmsLink">
<HeaderLink :show-as-button="showAsButton" data-cy="header-cms-link" @click="openCmsLink">
{{ t('cms_link_button_title') }}
</HeaderLink>
</template>
9 changes: 9 additions & 0 deletions tests/cypress/tests-e2e/header.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit c105fb8

Please sign in to comment.