Created
June 12, 2020 13:37
-
-
Save adrianodias8/197a2f2d5598bbbe30fbdcfb5f1f1811 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @api @javascript @notifications @this | |
| Feature: Notificatios | |
| As an group manager I should be notified of new content | |
| Background: | |
| Given the cache has been cleared | |
| Given I am logged in as a user with the administrator role | |
| Given a group of type "fut_open" | |
| | label | Broadband networks | | |
| | fut_short_name | Group Name | | |
| | fut_description | Bla Bla, Yada Yada | | |
| Given User with name "costadr" is a "manager" of group with title "Broadband networks" | |
| And I am a member of the current group | |
| Scenario: Verify that user with manager role gets a notification. | |
| Given the cache has been cleared | |
| When I go to "/broadband-networks" | |
| And I press "cnect-button-dropdown-groupheader-actions" | |
| And I wait for 1 seconds | |
| And I click "Add Post" | |
| Then I fill in "edit-title-0-value" with "Broadband Good Practices" | |
| Then I fill in wysiwyg on field "edit-fut-content-0-subform-fut-text-0-value" with "This is an example" | |
| And I press the "Save" button | |
| When I go to "/broadband-networks/posts/broadband-good-practices" | |
| Then I should see "Broadband Good Practices" | |
| And I should see "This is an example" | |
| Then the "message_digest:daily" for "costadr" should contain the following message | |
| | mail_subject | Futurium: Post has been created | | |
| | mail_body | The Outsider admin has created Post - "Broadband Good Practices" in the "Broadband networks" \n Status: Published \n Link: http://web/broadband-networks/posts/broadband-good-practices" | | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment