mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Include producers I have permission to in BPE producers choice
This commit is contained in:
committed by
summerscope
parent
9ec5dc6466
commit
fbd4f98fa9
@@ -764,10 +764,10 @@ feature %q{
|
||||
expect(page).to have_no_field 'product_name', with: product_not_supplied.name
|
||||
end
|
||||
|
||||
it "shows only suppliers that I manage" do
|
||||
it "shows only suppliers that I manage or have permission to" do
|
||||
visit '/admin/products/bulk_edit'
|
||||
|
||||
expect(page).to have_select 'producer', with_options: [supplier_managed1.name, supplier_managed2.name], selected: supplier_managed1.name
|
||||
expect(page).to have_select 'producer', with_options: [supplier_managed1.name, supplier_managed2.name, supplier_permitted.name], selected: supplier_managed1.name
|
||||
expect(page).to have_no_select 'producer', with_options: [supplier_unmanaged.name]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user