From 775da82072a387c28fe69ef1302eea648ac71149 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 4 Aug 2017 17:23:16 +1000 Subject: [PATCH] Add waiting conditions to spec --- spec/features/admin/enterprise_fees_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/admin/enterprise_fees_spec.rb b/spec/features/admin/enterprise_fees_spec.rb index cd24e8e3a3..9307574bc4 100644 --- a/spec/features/admin/enterprise_fees_spec.rb +++ b/spec/features/admin/enterprise_fees_spec.rb @@ -97,14 +97,16 @@ feature %q{ # When I go to the enterprise fees page login_to_admin_section click_link 'Configuration' + expect(page).to have_link 'Enterprise Fees' click_link 'Enterprise Fees' + expect(page).to have_content 'Enterprise Fees' # And I click delete find("a.delete-resource").click # Then my enterprise fee should have been deleted visit admin_enterprise_fees_path - page.should_not have_selector "input[value='#{fee.name}']" + expect(page).to have_no_selector "input[value='#{fee.name}']" end scenario "deleting a shipping method referenced by a product distribution" do