Guest User

Untitled

a guest
Mar 13th, 2018
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. Feature: Users inviting other users to groups
  2. In order to invite users into private groups
  3. A group admin
  4. wants to be able to invite other users to become members
  5.  
  6. Background:
  7. Given the following users:
  8. |email|password|forename|surname|
  9. |admin-1@example.com|password|admin|user|
  10. |user-1@example.com|password|invited|user|
  11. And I login with email "admin-1@example.com" and password "password"
  12. And I create a group titled "group-1"
  13. And I am on the group page for the group titled "group-1"
  14. And I follow "Invite users to join this group"
  15. Then I should be on the new invitation page for the group titled "group-1"
  16.  
  17. When I fill in "Email" with "user-1@example.com"
  18.  
  19. And I press "Invite"
  20.  
  21. Scenario: Inviting a user to a group
  22.  
  23. I should be on the group page for the group titled "group-1"
  24. And I should see a flash notice containing "Thank you - your invitations have been sent!"
  25.  
  26. Scenario: Accepting an invitation to a group
  27. Then "user-1@example.com" should receive 1 email
  28. And the email to "user-1@example.com" should be from "no-reply@example.com"
  29. And the email to "user-1@example.com" should have a subject of "NCSL Networking & Collaboration - Invitation to join the group: group-1"
  30. And the email to "user-1@example.com" should have a body containing "You have been invited to join the group: group-1"
  31. And the email to "user-1@example.com" should have a body containing a link to the invitations page
  32.  
  33. When I login with email "user-1@example.com" and password "password"
  34. And I click the first link in the email to "user-1@example.com"
  35. Then I should be on the invitations page for the user with email "user-1@example.com"
  36. And I should see "You have been invited to join the group: group-1"
  37.  
  38. When I click "Join this group"
  39.  
  40. Then I should be on the group page for the group titles "group-1"
  41. And I should see a flash notice containing "Thanks - you are now a member of this group."
  42.  
  43.  
  44. Scenario: Rejecting an invitation to a group
Add Comment
Please, Sign In to add comment