Adding the rest of the new user setup to cucumber.
wip scenario for skipping the profile wizard.
This commit is contained in:
parent
a9cbf43fa4
commit
8193f2e350
2 changed files with 32 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
|
@javascript
|
||||||
Feature: new user registration
|
Feature: new user registration
|
||||||
|
|
||||||
Scenario: new user sees profile wizard
|
Scenario: new user sees profile wizard
|
||||||
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"
|
||||||
And I fill in "Password" with "secret"
|
And I fill in "user_password" with "secret"
|
||||||
And I fill in "Password confirmation" with "secret"
|
And I fill in "Password confirmation" with "secret"
|
||||||
And I press "Sign up"
|
And I press "Sign up"
|
||||||
Then I should be on the getting started page
|
Then I should be on the getting started page
|
||||||
|
|
@ -16,4 +17,32 @@ Feature: new user registration
|
||||||
Then I should see "Profile updated"
|
Then I should see "Profile updated"
|
||||||
And I should see "Your aspects"
|
And I should see "Your aspects"
|
||||||
|
|
||||||
|
# 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!"
|
||||||
|
|
||||||
|
When I follow "Continue on to your everyone page, an overview of all of your aspects."
|
||||||
|
Then I should be on the home page
|
||||||
|
And I should see "We know you have friends, bring them to Diaspora!"
|
||||||
|
|
||||||
|
@wip
|
||||||
|
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"
|
||||||
|
Then I should be on the home page
|
||||||
|
And I should see "We know you have friends, bring them to Diaspora!"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
module NavigationHelpers
|
module NavigationHelpers
|
||||||
def path_to(page_name)
|
def path_to(page_name)
|
||||||
case page_name
|
case page_name
|
||||||
|
when /^the home page$/
|
||||||
|
root_path
|
||||||
when /^its ([\w ]+) page$/
|
when /^its ([\w ]+) page$/
|
||||||
send("#{$1.gsub(/\W+/, '_')}_path", @it)
|
send("#{$1.gsub(/\W+/, '_')}_path", @it)
|
||||||
when /^the ([\w ]+) page$/
|
when /^the ([\w ]+) page$/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue