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. #
  19. # Scenario: Accept an invitation to social group
  20. # Given I am logged as "fbaggins"
  21. # And I am on "/main/social/invitations.php"
  22. # When I follow "accept-invitation-1"
  23. # Then I should see "User is subscribed to this group"
  24. #
  25. # Scenario: Deny an invitation to social group
  26. # Given I am a platform administrator
  27. # And I have a friend named "sgamgee" with id "13"
  28. # And I invite to a friend with id "13" to a social group with id "1"
  29. # When I am logged as "sgamgee"
  30. # And I am on "/main/social/invitations.php"
  31. # And I follow "deny-invitation-1"
  32. # Then I should see "Group invitation was denied"
  33. #
  34. # Scenario: Delete user from group
  35. # Given I am a platform administrator
  36. # When I try delete a friend with id "12" from the social group with id "1"
  37. # Then I should see "The user has been deleted"