mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Update variants_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
8413c5f60a
commit
8416af4995
@@ -66,7 +66,9 @@ feature %q{
|
||||
visit spree.admin_product_variants_path p
|
||||
|
||||
within "tr#spree_variant_#{v.id}" do
|
||||
page.find('a.delete-resource').click
|
||||
accept_alert do
|
||||
page.find('a.delete-resource').click
|
||||
end
|
||||
end
|
||||
|
||||
page.should_not have_selector "tr#spree_variant_#{v.id}"
|
||||
|
||||
Reference in New Issue
Block a user