Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Feature: Users inviting other users to groups
- In order to invite users into private groups
- A group admin
- wants to be able to invite other users to become members
- Background:
- Given the following users:
- |email|password|forename|surname|
- |admin-1@example.com|password|admin|user|
- |user-1@example.com|password|invited|user|
- And I login with email "admin-1@example.com" and password "password"
- And I create a group titled "group-1"
- And I am on the group page for the group titled "group-1"
- And I follow "Invite users to join this group"
- Then I should be on the new invitation page for the group titled "group-1"
- When I fill in "Email" with "user-1@example.com"
- And I press "Invite"
- Scenario: Inviting a user to a group
- I should be on the group page for the group titled "group-1"
- And I should see a flash notice containing "Thank you - your invitations have been sent!"
- Scenario: Accepting an invitation to a group
- Then "user-1@example.com" should receive 1 email
- And the email to "user-1@example.com" should be from "no-reply@example.com"
- And the email to "user-1@example.com" should have a subject of "NCSL Networking & Collaboration - Invitation to join the group: group-1"
- And the email to "user-1@example.com" should have a body containing "You have been invited to join the group: group-1"
- And the email to "user-1@example.com" should have a body containing a link to the invitations page
- When I login with email "user-1@example.com" and password "password"
- And I click the first link in the email to "user-1@example.com"
- Then I should be on the invitations page for the user with email "user-1@example.com"
- And I should see "You have been invited to join the group: group-1"
- When I click "Join this group"
- Then I should be on the group page for the group titles "group-1"
- And I should see a flash notice containing "Thanks - you are now a member of this group."
- Scenario: Rejecting an invitation to a group
Add Comment
Please, Sign In to add comment