socialGroup.feature 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Feature: Social Group
  2. In order to use the Social Network
  3. As an administrator
  4. I need to be able to create a social group, invite users and post a message
  5. Scenario: Create a social group
  6. Given I am a platform administrator
  7. And I am on "/main/social/group_add.php"
  8. When I fill in the following:
  9. | name | Behat Test Group |
  10. | description | This is a group created by Behat |
  11. And I press "submit"
  12. Then I should see "Group added"
  13. Scenario: Invite a friend to group
  14. Given I am a platform administrator
  15. And I have a friend named "fbaggins" with id "11"
  16. When I invite to a friend with id "11" to a social group with id "1"
  17. Then I should see "Invitation sent"
  18. Scenario: Accept an invitation to social group
  19. Given I am logged as "fbaggins"
  20. And I am on "/main/social/invitations.php"
  21. When I follow "accept-invitation-1"
  22. Then I should see "User is subscribed to this group"
  23. Scenario: Deny an invitation to social group
  24. Given I am a platform administrator
  25. And I have a friend named "sgamgee" with id "13"
  26. And I invite to a friend with id "13" to a social group with id "1"
  27. When I am logged as "sgamgee"
  28. And I am on "/main/social/invitations.php"
  29. And I follow "deny-invitation-1"
  30. Then I should see "Group invitation was denied"
  31. Scenario: Delete user from group
  32. Given I am a platform administrator
  33. When I try delete a friend with id "11" from the social group with id "1"
  34. Then I should see "The user has been deleted"