From 2efd9052275c817d225f0d41eb9f1168ba2631a7 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 18 Dec 2014 10:24:00 +1100 Subject: [PATCH] Fixing specs to work with text-angular --- spec/features/admin/enterprises_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/features/admin/enterprises_spec.rb b/spec/features/admin/enterprises_spec.rb index f89b800f07..4a751c4aab 100644 --- a/spec/features/admin/enterprises_spec.rb +++ b/spec/features/admin/enterprises_spec.rb @@ -192,7 +192,7 @@ feature %q{ click_link "About" fill_in 'enterprise_description', :with => 'Connecting farmers and eaters' - long_description = find :css, "text-angular div.ta-scroll-window div.ta-bind" + long_description = find :css, "text-angular#enterprise_long_description div.ta-scroll-window div.ta-bind" long_description.set 'This is an interesting long description' # Check Angularjs switching of sidebar elements @@ -247,7 +247,8 @@ feature %q{ select2_search 'Victoria', :from => 'State' click_link "Shop Preferences" - fill_in 'enterprise_preferred_shopfront_message', :with => 'This is my shopfront message.' + shopfront_message = find :css, "text-angular#enterprise_preferred_shopfront_message div.ta-scroll-window div.ta-bind" + shopfront_message.set 'This is my shopfront message.' click_button 'Update' @@ -269,7 +270,7 @@ feature %q{ page.should have_content 'This is an interesting long description' click_link "Shop Preferences" - page.should have_field 'enterprise_preferred_shopfront_message', :text => 'This is my shopfront message.' + page.should have_content 'This is my shopfront message.' end describe "producer properties" do