Update shoppign spec

This commit is contained in:
Nihal Mohammed
2021-07-01 21:23:10 +05:30
committed by Matt-Yorkley
parent 894a11c9c1
commit 2acc339341

View File

@@ -188,13 +188,13 @@ feature "As a consumer I want to shop with a distributor", js: true do
expect(page).to have_selector("product", count: 10)
scroll_to(page.find(".product-listing"), align: :bottom)
expect(page).to_not have_content "Loading..."
expect(page).to have_selector("product", count: 20)
expect(page).to have_selector("product", count: 21)
scroll_to(page.find("distributor"))
select "turtles", from: "order_cycle_id"
expect(page).to have_selector("product", count: 10)
scroll_to(page.find(".product-listing"), align: :bottom)
expect(page).to have_selector("product", count: 20)
expect(page).to have_selector("product", count: 21)
end
end
end