mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Test creating a fee, not updating
The spec for creating an enterprise fee didn't actually create a new fee. Because all enterprise fees are displayed, it changed an existing fee.
This commit is contained in:
@@ -142,13 +142,12 @@ feature %q{
|
||||
end
|
||||
|
||||
it "creates enterprise fees" do
|
||||
ef2
|
||||
|
||||
visit edit_admin_enterprise_path(distributor1)
|
||||
within(".side_menu") { click_link 'Enterprise Fees' }
|
||||
click_link "Create One Now"
|
||||
|
||||
select distributor1.name, from: 'enterprise_fee_set_collection_attributes_0_enterprise_id'
|
||||
select 'Packing', from: 'enterprise_fee_set_collection_attributes_0_fee_type'
|
||||
fill_in 'enterprise_fee_set_collection_attributes_0_name', with: 'foo'
|
||||
select 'GST', from: 'enterprise_fee_set_collection_attributes_0_tax_category_id'
|
||||
select 'Flat Percent', from: 'enterprise_fee_set_collection_attributes_0_calculator_type'
|
||||
|
||||
Reference in New Issue
Block a user