Merge pull request #5756 from mkllnk/broken-spec

Make broken spec fail reliably and set it pending
This commit is contained in:
Maikel
2020-07-17 09:56:56 +10:00
committed by GitHub

View File

@@ -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