From 91fae79be4697f9a6486ace2da0c3103950b9d67 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 7 Oct 2015 14:06:34 +1100 Subject: [PATCH] Update tests for new label "Login" --- spec/features/admin/cms_spec.rb | 2 +- spec/features/consumer/shopping/checkout_auth_spec.rb | 4 ++-- spec/support/request/authentication_workflow.rb | 2 +- spec/support/request/ui_component_helper.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/features/admin/cms_spec.rb b/spec/features/admin/cms_spec.rb index e3dfcf19b9..2d4056b792 100644 --- a/spec/features/admin/cms_spec.rb +++ b/spec/features/admin/cms_spec.rb @@ -21,7 +21,7 @@ feature %q{ scenario "anonymous user can't access CMS admin", js: true do visit cms_admin_path page.should_not have_content "ComfortableMexicanSofa" - page.should have_content "Log in" + page.should have_content "Login" end scenario "non-admin user can't access CMS admin", js: true do diff --git a/spec/features/consumer/shopping/checkout_auth_spec.rb b/spec/features/consumer/shopping/checkout_auth_spec.rb index b9b2a15e33..a19776f7a9 100644 --- a/spec/features/consumer/shopping/checkout_auth_spec.rb +++ b/spec/features/consumer/shopping/checkout_auth_spec.rb @@ -25,7 +25,7 @@ feature "As a consumer I want to check out my cart", js: true do quick_login_as user visit checkout_path within "section[role='main']" do - page.should_not have_content "Log in" + page.should_not have_content "Login" page.should have_checkout_details end end @@ -45,7 +45,7 @@ feature "As a consumer I want to check out my cart", js: true do page.should have_login_modal fill_in "Email", with: user.email fill_in "Password", with: user.password - within(".login-modal") { click_button 'Log in' } + within(".login-modal") { click_button 'Login' } toggle_details page.should have_field 'First Name', with: 'Foo' diff --git a/spec/support/request/authentication_workflow.rb b/spec/support/request/authentication_workflow.rb index e71c0dd21a..79b6d81452 100644 --- a/spec/support/request/authentication_workflow.rb +++ b/spec/support/request/authentication_workflow.rb @@ -70,7 +70,7 @@ module AuthenticationWorkflow visit spree.login_path fill_in 'email', :with => 'someone@ofn.org' fill_in 'password', :with => 'passw0rd' - click_button 'Log in' + click_button 'Login' end end diff --git a/spec/support/request/ui_component_helper.rb b/spec/support/request/ui_component_helper.rb index e4b4e5a050..0b478a76ce 100644 --- a/spec/support/request/ui_component_helper.rb +++ b/spec/support/request/ui_component_helper.rb @@ -9,7 +9,7 @@ module UIComponentHelper end def click_login_button - click_button "Log in" + click_button "Login" end def click_signup_button