Don't show skip link if user.getting_started == false
This commit is contained in:
parent
597258615b
commit
b2e6caafed
2 changed files with 9 additions and 2 deletions
|
|
@ -61,5 +61,6 @@
|
|||
- if @step > 1
|
||||
= link_to t('back'), getting_started_path(:step => @step-1), :class => "button", :id => "previous_step"
|
||||
|
||||
.bottom_notification
|
||||
= link_to "#{t('.skip')} →", '#', :id => "getting_started_skip"
|
||||
- if @user.getting_started
|
||||
.bottom_notification
|
||||
= link_to "#{t('.skip')} →", '#', :id => "getting_started_skip"
|
||||
|
|
|
|||
|
|
@ -29,11 +29,17 @@ Feature: new user registration
|
|||
|
||||
When I follow "Save and continue"
|
||||
Then I should see "You're all set up, O!"
|
||||
And I should not see "skip getting started"
|
||||
|
||||
When I follow "Continue on to your everyone page, an overview of all of your aspects."
|
||||
Then I should be on the aspects page
|
||||
And I should see "bring them to Diaspora!"
|
||||
|
||||
Scenario: new user skips the setup wizard and returns to the setup wizard
|
||||
Given /^a user goes through the setup wizard$/
|
||||
When I go to getting_started
|
||||
Then I should not see "skip getting started"
|
||||
|
||||
Scenario: new user skips the setup wizard
|
||||
When I follow "skip getting started"
|
||||
And I wait for the aspects page to load
|
||||
|
|
|
|||
Loading…
Reference in a new issue