mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
To test the search by category, we need to use set primary_taxon attr
This commit is contained in:
@@ -18,7 +18,7 @@ describe 'As an admin, I can see the new product page' do
|
||||
let!(:product_by_supplier) { create(:simple_product, supplier: producer) }
|
||||
# create a product with a category that can be searched
|
||||
let!(:product_by_category) {
|
||||
create(:simple_product, taxons: [create(:taxon, name: "Category 1")])
|
||||
create(:simple_product, primary_taxon: create(:taxon, name: "Category 1"))
|
||||
}
|
||||
|
||||
before do
|
||||
|
||||
Reference in New Issue
Block a user