mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
Merge pull request #5756 from mkllnk/broken-spec
Make broken spec fail reliably and set it pending
This commit is contained in:
@@ -194,14 +194,16 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
end
|
||||
|
||||
it "returns search results for products where the search term matches one of the product's variant names" do
|
||||
pending "has been broken for a while"
|
||||
|
||||
visit shop_path
|
||||
fill_in "search", with: "Badg" # For variant with display_name "Badgers"
|
||||
|
||||
within('div.pad-top') do
|
||||
expect(page).to have_content product.name
|
||||
expect(page).to have_content variant2.display_name
|
||||
expect(page).not_to have_content product2.name
|
||||
expect(page).not_to have_content variant3.display_name
|
||||
expect(page).to have_content product.name
|
||||
expect(page).to have_content variant2.display_name
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user