Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Create Notification Profile
- Background:
- Given a role "Authorized" with permissions:
- | NotificationProfile | read, create |
- | EmailTemplate | read |
- | User | read |
- | Role | read |
- And a user "authorized.user" with role "Authorized"
- And a user "other.user" with:
- | name | Udo Unathorized |
- | email | [email protected] |
- And an email template "Test Template" with:
- """
- This is an email template:
- {{notifications.first.resource.subject_id}}
- of Center and Study
- {{notifications.first.resource.center.code}}
- {{notifications.first.resource.center.study.name}}
- """
- Scenario: Notification for `User` triggering resource
- When I sign in as user "authorized.user"
- And I browse to new NotificationProfile form
- And I fill in "Title" with "Test Notification Profile"
- And I fill in "Description" with "New notification profile for user"
- And I check "Is enabled"
- And I select "create" from "Triggering actions"
- And I select "User" from "Triggering resource"
- And I select "Include triggering user" from "Filter triggering user"
- And I select "instantly" from "Maximum email throttling delay"
- And I select "Test Template" from "Email template"
- And I click button "Create Notification profile"
- Then I see "Notification profile was successfully created"
- And I debug
- # And I wait 20 seconds
- # When a notification email is configured for profile "Test Notification Profile"
- # And I click "Logout" in the navigation menu
- # And I sign in as user "other.user"
- # Then an e-mail is sent to "[email protected]" with subject "New profile form"
Advertisement
Add Comment
Please, Sign In to add comment