-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathcustom_message_notification.feature
More file actions
59 lines (54 loc) · 3.4 KB
/
custom_message_notification.feature
File metadata and controls
59 lines (54 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Feature: Custom message for signers
In order to provide personalized instructions to signers
As a document owner
I want to send custom messages to signers via email
Background:
Given as user "admin"
And user "signer1" exists
And set the libresign email of user "signer1" to "[email protected]"
And my inbox is empty
And reset notifications of user "signer1"
And run the command "libresign:configure:openssl --cn test" with result code 0
And run the command "config:app:set activity notify_email_libresign_file_to_sign --value=1" with result code 0
And run the command "user:setting signer1 activity notify_email_libresign_file_to_sign 1" with result code 0
Scenario: Account method - default message without custom description
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| name | Document without custom message |
| users | [{"identify":{"account":"signer1"}}] |
Then the response should have a status code 200
And there should be 1 emails in my inbox
When I open the latest email to "[email protected]" with subject "LibreSign: There is a file for you to sign"
Then I should see "There is a document for you to sign" in the opened email
Scenario: Account method - custom description in email
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| name | Document with custom message |
| users | [{"identify":{"account":"signer1"},"description":"Please review section 3 and the appendix before signing."}] |
Then the response should have a status code 200
And there should be 1 emails in my inbox
When I open the latest email to "[email protected]" with subject "LibreSign: There is a file for you to sign"
Then I should see "Please review section 3 and the appendix before signing" in the opened email
And I should see "There is a document for you to sign" in the opened email
Scenario: Email method - default notification
When sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| name | Document for email method |
| users | [{"identify":{"email":"[email protected]"},"displayName":"External Signer"}] |
Then the response should have a status code 200
Scenario: Email method - custom description via reminder
Given sending "post" to ocs "/apps/libresign/api/v1/request-signature"
| file | {"url":"<BASE_URL>/apps/libresign/develop/pdf"} |
| name | Document for email with description |
| users | [{"identify":{"email":"[email protected]"},"displayName":"External Signer","description":"Urgent: Please sign by end of day."}] |
And the response should have a status code 200
And fetch field "(FILE_ID)ocs.data.data.id" from previous JSON response
And fetch field "(SIGN_REQUEST_ID)ocs.data.data.signers.0.signRequestId" from previous JSON response
And my inbox is empty
When sending "post" to ocs "/apps/libresign/api/v1/notify/signer"
| fileId | <FILE_ID> |
| signRequestId | <SIGN_REQUEST_ID> |
Then the response should have a status code 200
And there should be 1 emails in my inbox
When I open the latest email to "[email protected]"
Then I should see "Urgent: Please sign by end of day" in the opened email