From b2e6caafeddc60bbbb494e8163cda7653d7f00ee Mon Sep 17 00:00:00 2001 From: Matt Baker Date: Sat, 13 Nov 2010 18:13:55 -0800 Subject: [PATCH] Don't show skip link if user.getting_started == false --- app/views/users/getting_started.html.haml | 5 +++-- features/signs_up.feature | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/users/getting_started.html.haml b/app/views/users/getting_started.html.haml index d1be8a46f..424e7f867 100644 --- a/app/views/users/getting_started.html.haml +++ b/app/views/users/getting_started.html.haml @@ -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" diff --git a/features/signs_up.feature b/features/signs_up.feature index a213c258d..0ec5e847e 100644 --- a/features/signs_up.feature +++ b/features/signs_up.feature @@ -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