Dedicated new enterprise form

This commit is contained in:
Rob Harrington
2014-12-19 12:57:56 +11:00
parent 24cf3dee74
commit a810fc88ac
6 changed files with 123 additions and 30 deletions

View File

@@ -131,40 +131,18 @@ feature %q{
select2_search admin.email, from: 'Owner'
select2_search admin.email, from: 'Owner'
choose 'Any'
select2_search eg1.name, from: 'Groups'
click_link "Payment Methods"
check "enterprise_payment_method_ids_#{payment_method.id}"
click_link "Shipping Methods"
check "enterprise_shipping_method_ids_#{shipping_method.id}"
click_link "Contact"
fill_in 'enterprise_contact', :with => 'Kirsten or Ren'
fill_in 'enterprise_phone', :with => '0413 897 321'
fill_in 'enterprise_email', :with => 'info@eaterprises.com.au'
fill_in 'enterprise_website', :with => 'http://eaterprises.com.au'
click_link "Social"
fill_in 'enterprise_twitter', :with => '@eaterprises'
fill_in 'enterprise_facebook', :with => 'facebook.com/eaterprises'
fill_in 'enterprise_instagram', :with => 'eaterprises'
click_link "Business Details"
fill_in 'enterprise_abn', :with => '09812309823'
fill_in 'enterprise_acn', :with => ''
click_link "Address"
fill_in 'enterprise_address_attributes_address1', :with => '35 Ballantyne St'
fill_in 'enterprise_address_attributes_city', :with => 'Thornbury'
fill_in 'enterprise_address_attributes_zipcode', :with => '3072'
select2_search 'Australia', :from => 'Country'
select2_search 'Victoria', :from => 'State'
click_link "About"
long_description = find :css, "text-angular div.ta-scroll-window div.ta-bind"
long_description.set 'Connecting farmers and eaters'
click_button 'Create'
flash_message.should == 'Enterprise "Eaterprises" has been successfully created!'
end