Update tests for new label "Login"

This commit is contained in:
Maikel Linke
2015-10-07 14:06:34 +11:00
parent 5aa3ebde9c
commit 91fae79be4
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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'

View File

@@ -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

View File

@@ -9,7 +9,7 @@ module UIComponentHelper
end
def click_login_button
click_button "Log in"
click_button "Login"
end
def click_signup_button