From acdbbb153d3548e05c1076b7eda069d963facc87 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 28 Nov 2013 15:24:38 +1100 Subject: [PATCH] Fixing up the landing page spec to cover the new login text --- spec/features/consumer/temp_landing_page_spec.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spec/features/consumer/temp_landing_page_spec.rb b/spec/features/consumer/temp_landing_page_spec.rb index 7275d86c73..b0cc4adab2 100644 --- a/spec/features/consumer/temp_landing_page_spec.rb +++ b/spec/features/consumer/temp_landing_page_spec.rb @@ -34,16 +34,18 @@ feature %q{ describe "account links" do it "should display log in and sign up links when signed out" do - page.should have_link 'Log in' - page.should have_link 'Sign up' + page.should have_link 'Login' + page.should have_link 'Sign Up' end it "should not display links when signed in" do login_to_consumer_section visit root_path - page.should_not have_link 'Log in' - page.should_not have_link 'Sign up' + #page.should_not have_link 'Login' + page.should_not have_selector('#sidebarLoginButton', visible: true) + page.should_not have_selector('#sidebarSignUpButton', visible: true) + #page.should_not have_link 'Sign Up' end end