Add feature for skipping the setup wizard.
This commit is contained in:
parent
cb09249058
commit
9594e11ded
2 changed files with 8 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
@javascript
|
@javascript
|
||||||
Feature: new user registration
|
Feature: new user registration
|
||||||
|
|
||||||
Scenario: new user sees profile wizard
|
Background:
|
||||||
When I go to the new user registration page
|
When I go to the new user registration page
|
||||||
And I fill in "Username" with "ohai"
|
And I fill in "Username" with "ohai"
|
||||||
And I fill in "Email" with "ohai@example.com"
|
And I fill in "Email" with "ohai@example.com"
|
||||||
|
|
@ -11,6 +11,7 @@ Feature: new user registration
|
||||||
Then I should be on the getting started page
|
Then I should be on the getting started page
|
||||||
And I should see "Welcome to Diaspora!"
|
And I should see "Welcome to Diaspora!"
|
||||||
|
|
||||||
|
Scenario: new user goes through the setup wizard
|
||||||
When I fill in "person_profile_first_name" with "O"
|
When I fill in "person_profile_first_name" with "O"
|
||||||
And I fill in "person_profile_last_name" with "Hai"
|
And I fill in "person_profile_last_name" with "Hai"
|
||||||
And I press "Save and continue"
|
And I press "Save and continue"
|
||||||
|
|
@ -32,17 +33,8 @@ Feature: new user registration
|
||||||
Then I should be on the home page
|
Then I should be on the home page
|
||||||
And I should see "We know you have friends, bring them to Diaspora!"
|
And I should see "We know you have friends, bring them to Diaspora!"
|
||||||
|
|
||||||
@wip
|
Scenario: new user skips the setup wizard
|
||||||
Scenario: new user can skip the profile wizard
|
|
||||||
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"
|
|
||||||
And I fill in "Password" with "secret"
|
|
||||||
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!"
|
|
||||||
|
|
||||||
When I follow "skip getting started"
|
When I follow "skip getting started"
|
||||||
|
And I wait for the home page to load
|
||||||
Then I should be on the home page
|
Then I should be on the home page
|
||||||
And I should see "We know you have friends, bring them to Diaspora!"
|
And I should see "We know you have friends, bring them to Diaspora!"
|
||||||
|
|
|
||||||
|
|
@ -21,3 +21,7 @@ Then /^I should see "([^\"]*)" in the main content area$/ do |stuff|
|
||||||
Then "I should see #{stuff}"
|
Then "I should see #{stuff}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I wait for the home page to load$/ do
|
||||||
|
wait_until { current_path == root_path }
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue