signs_up.feature 1.79 KB
Newer Older
1
@javascript
2 3
Feature: new user registration

4
  Background:
5 6 7
    When I go to the new user registration page
    And I fill in "Username" with "ohai"
    And I fill in "Email" with "ohai@example.com"
8
    And I fill in "user_password" with "secret"
9 10 11 12 13
    And I fill in "Password confirmation" with "secret"
    And I press "Sign up"
    Then I should be on the getting started page
    And I should see "Welcome to Diaspora!"

14
  Scenario: new user goes through the setup wizard
15 16 17
    When I fill in "profile_first_name" with "O"
    And I fill in "profile_last_name" with "Hai"
    And I fill in "profile_gender" with "guess!"
18 19 20
    And I press "Save and continue"
    Then I should see "Profile updated"
    And I should see "Your aspects"
21
    
22

23 24 25 26 27 28 29 30 31 32
#  Not working with selenium - it thinks the aspect name field is hidden
#    When I fill in "Aspect name" with "cheez friends"
#    And I press "Add"
#    And show me the page
#    Then I should see "cheez friends"
    When I follow "Save and continue"
    Then I should see "Your services"

    When I follow "Save and continue"
    Then I should see "You're all set up, O!"
33
    And I should not see "skip getting started"
34

35
    When I follow "Continue on to your Home page, an overview of all of your aspects."
36
    Then I should be on the aspects page
37
    And I should see "Bring the people that matter in your life to Diaspora!"
38

39
  Scenario: new user skips the setup wizard and returns to the setup wizard
40 41
    When I follow "skip getting started"
    And I go to the getting started page
42 43
    Then I should not see "skip getting started"
  
44
  Scenario: new user skips the setup wizard
45
    When I follow "skip getting started"
46 47
    And I wait for the aspects page to load
    Then I should be on the aspects page
48
    And I should see "Bring the people that matter in your life to Diaspora!"