Cart dropdown now closes when clicking outside it.

This commit is contained in:
Matt-Yorkley
2019-08-05 21:04:54 +01:00
parent 02ec0634b3
commit 8a069787d1
4 changed files with 21 additions and 9 deletions

View File

@@ -112,6 +112,7 @@ feature "As a consumer I want to shop with a distributor", js: true do
# that we are not filling in the quantity on the outgoing row
page.should_not have_selector "tr.product-cart"
within('product:not(.ng-leave)') { fill_in "variants[#{variant.id}]", with: 1 }
show_cart
within("li.cart") { page.should have_content with_currency(19.99) }
end