Make Chrome accepting alerts

This commit is contained in:
Maikel Linke
2018-07-12 11:00:19 +10:00
committed by luisramos0
parent 843ec2c08f
commit e49eb42af6

View File

@@ -455,8 +455,11 @@ feature %q{
click_link "Properties"
end
# Bug: https://github.com/openfoodfoundation/openfoodnetwork/issues/2453
accept_alert do
within("#spree_producer_property_#{pp.id}") { page.find('a.remove_fields').click }
accept_alert do
within("#spree_producer_property_#{pp.id}") { page.find('a.remove_fields').click }
end
end
click_button 'Update'