mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Fixed specs broken by new temp landing page (take 1).
This commit is contained in:
@@ -29,7 +29,7 @@ feature %q{
|
||||
login_to_consumer_section
|
||||
visit cms_admin_path
|
||||
page.should_not have_content "ComfortableMexicanSofa"
|
||||
page.should have_content "Home"
|
||||
page.should have_content "WHERE WOULD YOU LIKE TO SHOP?"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -29,8 +29,8 @@ feature %q{
|
||||
|
||||
scenario "adding the first product to the cart" do
|
||||
# Given a product, some distributors and a defined shipping cost
|
||||
d1 = create(:distributor_enterprise)
|
||||
d2 = create(:distributor_enterprise)
|
||||
d1 = create(:distributor_enterprise, :name => "Green Grass")
|
||||
d2 = create(:distributor_enterprise, :name => "AusFarmers United")
|
||||
create(:product, :distributors => [d2])
|
||||
p = create(:product, :price => 12.34)
|
||||
create(:product_distribution, :product => p, :distributor => d1)
|
||||
|
||||
@@ -43,8 +43,7 @@ module AuthenticationWorkflow
|
||||
|
||||
user.spree_roles << user_role
|
||||
|
||||
visit spree.root_path
|
||||
click_link 'Login'
|
||||
visit spree.login_path
|
||||
fill_in 'spree_user_email', :with => 'someone@ofw.org'
|
||||
fill_in 'spree_user_password', :with => 'passw0rd'
|
||||
click_button 'Login'
|
||||
|
||||
Reference in New Issue
Block a user