Fix specs that relied on the old login page which we now redirect to the new page

This commit is contained in:
Rohan Mitchell
2015-03-25 12:11:06 +11:00
parent 2a7a106ad8
commit e2a4b9a898
2 changed files with 6 additions and 6 deletions

View File

@@ -18,13 +18,13 @@ feature %q{
current_path.should match(/^\/admin/)
end
scenario "anonymous user can't access CMS admin" do
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 "Login"
page.should have_content "Log in"
end
scenario "non-admin user can't access CMS admin" do
scenario "non-admin user can't access CMS admin", js: true do
login_to_consumer_section
visit cms_admin_path
page.should_not have_content "ComfortableMexicanSofa"

View File

@@ -68,9 +68,9 @@ module AuthenticationWorkflow
user.spree_roles << user_role
visit spree.login_path
fill_in 'spree_user_email', :with => 'someone@ofn.org'
fill_in 'spree_user_password', :with => 'passw0rd'
click_button 'Login'
fill_in 'email', :with => 'someone@ofn.org'
fill_in 'password', :with => 'passw0rd'
click_button 'Log in'
end
end