diff --git a/cypress/support/annotation.js b/cypress/support/annotation.js index 25cee3ef0..6c900042a 100644 --- a/cypress/support/annotation.js +++ b/cypress/support/annotation.js @@ -28,7 +28,8 @@ export function createAnnotation({ cy.findByRole('button', { name: 'Validate', timeout: 1500 }).click(); - cy.findByText('Annotation created successfully', { timeout: 1500 }).should( - 'be.visible', - ); + cy.findByText( + 'Your suggestion has been sent. We thank you for your contribution.', + { timeout: 1500 }, + ).should('be.visible'); } diff --git a/src/app/custom/translations.tsv b/src/app/custom/translations.tsv index 09d678b42..ca0328ea2 100644 --- a/src/app/custom/translations.tsv +++ b/src/app/custom/translations.tsv @@ -1190,7 +1190,7 @@ "error_page_invalid" "The page is not valid" "La page n'est pas valide" "error_sortDir_invalid" "The sort order is not valid" "L'ordre de tri n'est pas valide" "annotation_create_button_label" "Add an annotation to %{field} field" "Ajouter une annotation au champ %{field}" -"annotation_create_success" "Annotation created successfully" "Annotation créée avec succès" +"annotation_create_success" "Your suggestion has been sent. We thank you for your contribution." "Votre suggestion a bien été transmise. Nous vous remercions pour votre contribution." "annotation_create_error" "Failed to create annotation" "Une erreur est survenue lors de la création de l'annotation" "annotation_add_comment" "Add a comment" "Ajouter un commentaire" "annotation.comment" "Comment" "Commentaire" diff --git a/src/app/js/annotation/CreateAnnotationModal.js b/src/app/js/annotation/CreateAnnotationModal.js index 72323c72b..b708977af 100644 --- a/src/app/js/annotation/CreateAnnotationModal.js +++ b/src/app/js/annotation/CreateAnnotationModal.js @@ -146,7 +146,7 @@ export function CreateAnnotationModal({ horizontal: 'right', }} transformOrigin={{ - vertical: 'top', + vertical: 'bottom', horizontal: 'left', }} PaperProps={{