Skip to content

Commit

Permalink
PB 1151: test corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
ltkum committed Jan 14, 2025
1 parent dabc90a commit 60bbd66
Show file tree
Hide file tree
Showing 5 changed files with 8 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 @@ -248,7 +248,7 @@
"feedback_unsupported_format": "Dieser Dateityp wird leider nicht unterstützt. Bitte verwenden Sie eine .pdf, .zip, .jpg, .jpeg, .kml, .kmz oder .gpx Datei.",
"field_required": "Dieses Feld ist erforderlich",
"file_imported_success": "Datei erfolgreich importiert",
"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.",
"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.",
"file_is_not_kml": "Dieses File ist keine KML Datei. ",
"file_name": "Zeichnungsname",
"file_too_large": "Die Datei ist zu gross (maximal erlaubte Grösse: {maxFileSize}).",
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 @@ -248,7 +248,7 @@
"feedback_unsupported_format": "This file format is not supported. Thanks for using another format for you attachment.",
"field_required": "This field is required",
"file_imported_success": "File successfully imported",
"file_imported_partially_out_of_bounds": "The imported file is not completely within the swiss boundaries. Some functionalities might not be available.",
"file_imported_partially_out_of_bounds": "The imported file is partially within the swiss boundaries. Some functionalities might not be available.",
"file_is_not_kml": "The file is not a KML file.",
"file_name": "Drawing name",
"file_too_large": "The file is too large (max size allowed {maxFileSize}).",
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 @@ -248,7 +248,7 @@
"feedback_unsupported_format": "Le format du fichier n’est pas pris en charge, merci d’utiliser un autre format pour votre pièce jointe.",
"field_required": "Ce champ est requis",
"file_imported_success": "Fichier importé avec succès",
"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.",
"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.",
"file_is_not_kml": "Ce fichier n'est pas un fichier KML.",
"file_name": "Nom du dessin",
"file_too_large": "Ce fichier est trop volumineux (taille maximale autorisée : {maxFileSize})",
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 @@ -248,7 +248,7 @@
"feedback_unsupported_format": "Il formato del file selezionato non è supportato dal sistema, per favore utilizzare un altro formato per il vostro allegato.",
"field_required": "Questo campo è obbligatorio",
"file_imported_success": "File importato con successo",
"file_imported_partially_out_of_bounds": "Il file importato non rientra completamente nei confini svizzeri. Alcune funzionalità potrebbero non essere disponibili.",
"file_imported_partially_out_of_bounds": "Il file importato si trova parzialmente all'interno dei confini svizzeri. Alcune funzionalità potrebbero non essere disponibili.",
"file_is_not_kml": "Questo file non è un file KML.",
"file_name": "Nome del disegno",
"file_too_large": "Il file é troppo grande (dimensione massima consentita: {maxFileSize})",
Expand Down
6 changes: 4 additions & 2 deletions tests/cypress/tests-e2e/importToolFile.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,11 @@ describe('The Import File Tool', () => {
cy.get('[data-cy="file-input-text"]')
.should('have.class', 'is-valid')
.should('not.have.class', 'is-invalid')
cy.get('[data-cy="file-input-valid-feedback"]')
cy.get('[data-cy="file-input-warning-feedback"]')
.should('be.visible')
.contains('File successfully imported')
.contains(
'The imported file is not completely within the swiss boundaries. Some functionalities might not be available.'
)
cy.get('[data-cy="import-file-load-button"]').should('be.visible').contains('Import')
cy.get('[data-cy="import-file-online-content"]').should('not.be.visible')
cy.readStoreValue('state.layers.activeLayers').should('have.length', 4)
Expand Down

0 comments on commit 60bbd66

Please sign in to comment.