Angularising Admin enterprises form

This commit is contained in:
Rob H
2014-06-27 17:01:02 +10:00
parent c4e50dbb13
commit 2200392031
18 changed files with 88 additions and 20 deletions

View File

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