mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Update tests for new label "Login"
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ module UIComponentHelper
|
||||
end
|
||||
|
||||
def click_login_button
|
||||
click_button "Log in"
|
||||
click_button "Login"
|
||||
end
|
||||
|
||||
def click_signup_button
|
||||
|
||||
Reference in New Issue
Block a user