From 50a8554b550a91ebe649aa6ddc2e0ee17d7cdb28 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 31 May 2018 20:55:41 +1000 Subject: [PATCH] Update enterprises_spec to work with Selenium --- spec/features/admin/enterprises_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index f594536127..1f47e5ea01 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -61,9 +61,6 @@ feature %q{ end scenario "editing an existing enterprise", js: true do - # Make the page long enough to avoid the save bar overlaying the form - page.driver.resize(1280, 1000) - @enterprise = create(:enterprise) e2 = create(:enterprise) eg1 = create(:enterprise_group, name: 'eg1') @@ -443,7 +440,9 @@ feature %q{ click_link "Properties" end - 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 click_button 'Update'