From 0145c1690b109de5eb59b405a15ba6119add6940 Mon Sep 17 00:00:00 2001 From: pradip Date: Mon, 15 Jul 2024 14:38:19 +0545 Subject: [PATCH] test: add test coverage for mail notification with comma(,) in display name of sender --- .../apiNotification/emailNotification.feature | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/acceptance/features/apiNotification/emailNotification.feature b/tests/acceptance/features/apiNotification/emailNotification.feature index 586f0abc9c..b3c6a9c093 100644 --- a/tests/acceptance/features/apiNotification/emailNotification.feature +++ b/tests/acceptance/features/apiNotification/emailNotification.feature @@ -210,3 +210,28 @@ Feature: Email notification Zum Ansehen hier klicken: %base_url%/files/shares/with-me """ + + @issue-9530 + Scenario: user gets an email notification when someone with comma in display name shares a file + Given the administrator has assigned the role "Admin" to user "Brian" using the Graph API + And the user "Brian" has created a new user with the following attributes: + | userName | Carol | + | displayName | Carol, King | + | email | carol@example.com | + | password | 1234 | + And user "Carol" has uploaded file with content "sample text" to "lorem.txt" + When user "Carol" sends the following resource share invitation using the Graph API: + | resource | lorem.txt | + | space | Personal | + | sharee | Brian | + | shareType | user | + | permissionsRole | Viewer | + Then the HTTP status code should be "200" + And user "Brian" should have received the following email from user "Carol" + """ + Hello Brian Murphy + + Carol, King has shared "lorem.txt" with you. + + Click here to view it: %base_url%/files/shares/with-me + """