From 8bd2133e7e1778322acde8c417d806ecf05bbd6e Mon Sep 17 00:00:00 2001 From: nirajacharya2 Date: Wed, 28 Jun 2023 14:51:09 +0545 Subject: [PATCH] added test for mail notification in diffrent languages when sharing resources --- .../apiNotification/emailNotification.feature | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/tests/acceptance/features/apiNotification/emailNotification.feature b/tests/acceptance/features/apiNotification/emailNotification.feature index 98e097107ed..d98594db995 100644 --- a/tests/acceptance/features/apiNotification/emailNotification.feature +++ b/tests/acceptance/features/apiNotification/emailNotification.feature @@ -70,3 +70,61 @@ Feature: Email notification Click here to view it: %base_url%/f/%space_id% """ + + + Scenario: group members get an email notification in their respective languages when someone shares a folder with the group + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Carol" has been created with default attributes and without skeleton files + And group "group1" has been created + And user "Brian" has been added to group "group1" + And user "Carol" has been added to group "group1" + And user "Brian" has switched the system language to "es" + And user "Carol" has switched the system language to "de" + And user "Alice" has created folder "/HelloWorld" + When user "Alice" has shared folder "/HelloWorld" with group "group1" + Then the HTTP status code should be "200" + And user "Brian" should have received the following email from user "Alice" + """ + Hola Brian Murphy + + %displayname% ha compartido "HelloWorld" contigo. + + Click aquí para verlo: %base_url%/files/shares/with-me + """ + And user "Carol" should have received the following email from user "Alice" + """ + Hallo Carol King + + %displayname% hat "HelloWorld" mit Ihnen geteilt. + + Zum Ansehen hier klicken: %base_url%/files/shares/with-me + """ + + + Scenario: group members get an email notification in their respective languages when someone shares a file with the group + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API + And user "Carol" has been created with default attributes and without skeleton files + And group "group1" has been created + And user "Brian" has been added to group "group1" + And user "Carol" has been added to group "group1" + And user "Brian" has switched the system language to "es" + And user "Carol" has switched the system language to "de" + And user "Alice" has uploaded file with content "hello world" to "text.txt" + When user "Alice" has shared file "text.txt" with group "group1" + Then the HTTP status code should be "200" + And user "Brian" should have received the following email from user "Alice" + """ + Hola Brian Murphy + + %displayname% ha compartido "text.txt" contigo. + + Click aquí para verlo: %base_url%/files/shares/with-me + """ + And user "Carol" should have received the following email from user "Alice" + """ + Hallo Carol King + + %displayname% hat "text.txt" mit Ihnen geteilt. + + Zum Ansehen hier klicken: %base_url%/files/shares/with-me + """