mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Shipping methods can be tagged
This commit is contained in:
@@ -93,12 +93,16 @@ feature 'shipping methods' do
|
||||
fill_in 'shipping_method_name', :with => 'Teleport'
|
||||
|
||||
check "shipping_method_distributor_ids_#{distributor1.id}"
|
||||
find(:css, "tags-input .tags input").set "local\n"
|
||||
|
||||
click_button 'Create'
|
||||
|
||||
flash_message.should == 'Shipping method "Teleport" has been successfully created!'
|
||||
expect(first('tags-input .tag-list ti-tag-item')).to have_content "local"
|
||||
|
||||
shipping_method = Spree::ShippingMethod.find_by_name('Teleport')
|
||||
shipping_method.distributors.should == [distributor1]
|
||||
shipping_method.tag_list.should == ["local"]
|
||||
end
|
||||
|
||||
it "shows me only shipping methods I have access to" do
|
||||
|
||||
Reference in New Issue
Block a user