Steps to reproduce
Scenario 1: user should get an error message when trying to send notification by email to a user who has not setup their email
Given parameter "shareapi_allow_mail_notification" of app "core" has been set to "yes"
And user "user1" has logged in using the webUI
And user "user1" has shared file "lorem.txt" with user "user2"
And the user has opened the share dialog for file "lorem.txt"
When the user sends the share notification by email using the webUI
Then a notification should be displayed on the webUI with the text "Email notification was not sent!"
- Note: In the first scenario the email of the receiver is not set.
Scenario 2: user should get an error message when trying to send notification when email server setting is invalid
Given parameter "shareapi_allow_mail_notification" of app "core" has been set to "yes"
And user "user1" has logged in using the webUI
And user "user1" has shared file "lorem.txt" with user "user2"
And the user has opened the share dialog for file "lorem.txt"
When the user sends the share notification by email using the webUI
Then a notification should be displayed on the webUI with the text "Email notification was not sent!"
- Note: In the second scenario set the receiver's email but change your Email Server setting in Admin General settings page to invalid one.
Actual behaviour
User should get an error message saying "Email notification was sent!"
Expected behaviour
User should get an error message saying "Email notification was not sent!"
c.c @individual-it @phil-davis @PVince81
Response in DevTools
{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"Couldn't send mail to following recipient(s): arkouser ","totalitems":"","itemsperpage":""},"data":[]}}
Steps to reproduce
Actual behaviour
User should get an error message saying "Email notification was sent!"
Expected behaviour
User should get an error message saying "Email notification was not sent!"
c.c @individual-it @phil-davis @PVince81
Response in DevTools
{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"Couldn't send mail to following recipient(s): arkouser ","totalitems":"","itemsperpage":""},"data":[]}}