diaspora/features/accepts_invitation.feature
Steven Hancock 2ae366ad19 Render invitation email without a layout
Ideally, we'll probably want to add a layout for this email at some point,
but this simplifies it to the bare minimum and gets rid of the "click here
to change your notification settings" link.

fixes #3270
2012-05-17 17:51:20 -07:00

48 lines
1.8 KiB
Gherkin

@javascript
Feature: invitation acceptance
Scenario: accept invitation from admin
Given I have been invited by an admin
And I am on my acceptance form page
And I fill in the following:
| user_username | ohai |
| user_email | woot@sweet.com |
| user_password | secret |
And I press "Continue"
Then I should be on the getting started page
And I should see "Well, hello there!"
And I fill in the following:
| profile_first_name | O |
And I preemptively confirm the alert
And I follow "awesome_button"
Then I should be on the stream page
Scenario: accept invitation from user
Given I have been invited by bob
And I am on my acceptance form page
And I fill in the following:
| user_username | ohai |
| user_email | woot@sweet.com |
| user_password | secret |
And I press "Continue"
Then I should be on the getting started page
And I should see "Well, hello there!"
And I fill in the following:
| profile_first_name | O |
And I preemptively confirm the alert
And I follow "awesome_button"
Then I should be on the stream page
And I log out
And I sign in as "bob@bob.bob"
And I follow "By email"
Then I should see one less invite
Scenario: sends an invitation
Given a user with email "bob@bob.bob"
When I sign in as "bob@bob.bob"
And I follow "By email"
And I fill in "email_inviter_emails" with "alex@example.com"
And I press "Send an invitation"
Then I should have 1 Devise email delivery
And I should not see "change your notification settings" in the last sent email