mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-26 05:55:15 +00:00
Angularising Admin enterprises form
This commit is contained in:
@@ -125,9 +125,17 @@ feature %q{
|
||||
fill_in 'enterprise_name', :with => 'Eaterprises'
|
||||
fill_in 'enterprise_description', :with => 'Connecting farmers and eaters'
|
||||
fill_in 'enterprise_long_description', :with => 'Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro.'
|
||||
|
||||
|
||||
# Check Angularjs switching of sidebar elements
|
||||
uncheck 'enterprise_is_primary_producer'
|
||||
uncheck 'enterprise_is_distributor'
|
||||
page.should_not have_selector "#payment_methods"
|
||||
page.should_not have_selector "#shipping_methods"
|
||||
page.should_not have_selector "#enterprise_feess"
|
||||
check 'enterprise_is_distributor'
|
||||
page.should have_selector "#payment_methods"
|
||||
page.should have_selector "#shipping_methods"
|
||||
page.should have_selector "#enterprise_feess"
|
||||
|
||||
select eg1.name, from: 'enterprise_group_ids'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user