Skip to content

Commit 60bbd66

Browse files
committed
PB 1151: test corrections
1 parent dabc90a commit 60bbd66

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

src/modules/i18n/locales/de.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"feedback_unsupported_format": "Dieser Dateityp wird leider nicht unterstützt. Bitte verwenden Sie eine .pdf, .zip, .jpg, .jpeg, .kml, .kmz oder .gpx Datei.",
249249
"field_required": "Dieses Feld ist erforderlich",
250250
"file_imported_success": "Datei erfolgreich importiert",
251-
"file_imported_partially_out_of_bounds": "Die importierte Datei befindet sich nicht vollständig innerhalb der Schweizer Grenzen. Einige Funktionalitäten stehen möglicherweise nicht zur Verfügung.",
251+
"file_imported_partially_out_of_bounds": "Die importierte Datei liegt teilweise innerhalb der Schweizer Grenzen. Einige Funktionalitäten stehen möglicherweise nicht zur Verfügung.",
252252
"file_is_not_kml": "Dieses File ist keine KML Datei. ",
253253
"file_name": "Zeichnungsname",
254254
"file_too_large": "Die Datei ist zu gross (maximal erlaubte Grösse: {maxFileSize}).",

src/modules/i18n/locales/en.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"feedback_unsupported_format": "This file format is not supported. Thanks for using another format for you attachment.",
249249
"field_required": "This field is required",
250250
"file_imported_success": "File successfully imported",
251-
"file_imported_partially_out_of_bounds": "The imported file is not completely within the swiss boundaries. Some functionalities might not be available.",
251+
"file_imported_partially_out_of_bounds": "The imported file is partially within the swiss boundaries. Some functionalities might not be available.",
252252
"file_is_not_kml": "The file is not a KML file.",
253253
"file_name": "Drawing name",
254254
"file_too_large": "The file is too large (max size allowed {maxFileSize}).",

src/modules/i18n/locales/fr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"feedback_unsupported_format": "Le format du fichier n’est pas pris en charge, merci d’utiliser un autre format pour votre pièce jointe.",
249249
"field_required": "Ce champ est requis",
250250
"file_imported_success": "Fichier importé avec succès",
251-
"file_imported_partially_out_of_bounds": "Le fichier importé n'est pas entièrement à l'intérieur des frontières suisses. Certaines fonctionnalités peuvent ne pas être disponibles.",
251+
"file_imported_partially_out_of_bounds": "Le fichier importé se trouve partiellement à l'intérieur des frontières suisses. Certaines fonctionnalités peuvent ne pas être disponibles.",
252252
"file_is_not_kml": "Ce fichier n'est pas un fichier KML.",
253253
"file_name": "Nom du dessin",
254254
"file_too_large": "Ce fichier est trop volumineux (taille maximale autorisée : {maxFileSize})",

src/modules/i18n/locales/it.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
"feedback_unsupported_format": "Il formato del file selezionato non è supportato dal sistema, per favore utilizzare un altro formato per il vostro allegato.",
249249
"field_required": "Questo campo è obbligatorio",
250250
"file_imported_success": "File importato con successo",
251-
"file_imported_partially_out_of_bounds": "Il file importato non rientra completamente nei confini svizzeri. Alcune funzionalità potrebbero non essere disponibili.",
251+
"file_imported_partially_out_of_bounds": "Il file importato si trova parzialmente all'interno dei confini svizzeri. Alcune funzionalità potrebbero non essere disponibili.",
252252
"file_is_not_kml": "Questo file non è un file KML.",
253253
"file_name": "Nome del disegno",
254254
"file_too_large": "Il file é troppo grande (dimensione massima consentita: {maxFileSize})",

tests/cypress/tests-e2e/importToolFile.cy.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ describe('The Import File Tool', () => {
144144
cy.get('[data-cy="file-input-text"]')
145145
.should('have.class', 'is-valid')
146146
.should('not.have.class', 'is-invalid')
147-
cy.get('[data-cy="file-input-valid-feedback"]')
147+
cy.get('[data-cy="file-input-warning-feedback"]')
148148
.should('be.visible')
149-
.contains('File successfully imported')
149+
.contains(
150+
'The imported file is not completely within the swiss boundaries. Some functionalities might not be available.'
151+
)
150152
cy.get('[data-cy="import-file-load-button"]').should('be.visible').contains('Import')
151153
cy.get('[data-cy="import-file-online-content"]').should('not.be.visible')
152154
cy.readStoreValue('state.layers.activeLayers').should('have.length', 4)

0 commit comments

Comments
 (0)