From 41ce7047cc6252150f93b8a732e7ef723cd2ccd5 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley Date: Thu, 31 Aug 2017 13:36:25 +0100 Subject: [PATCH] Tidy up order cycle spec --- spec/features/admin/order_cycles_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/admin/order_cycles_spec.rb b/spec/features/admin/order_cycles_spec.rb index ee6c90edb9..cd0a2389c7 100644 --- a/spec/features/admin/order_cycles_spec.rb +++ b/spec/features/admin/order_cycles_spec.rb @@ -68,12 +68,12 @@ feature %q{ end context 'using datepickers' do - it "correctly open the datepicker and changes the date field" do + it "correctly opens the datepicker and changes the date field" do login_to_admin_section visit admin_order_cycles_path within("tr.order-cycle-#{oc_de.id}") do - expect(all('input').first.value).to start_with '2012-01-01 00:00:00' + expect(find('input.datetimepicker', match: :first).value).to start_with '2012-01-01 00:00:00' find('img.ui-datepicker-trigger', match: :first).click end @@ -85,7 +85,7 @@ feature %q{ end within("tr.order-cycle-#{oc_de.id}") do - expect(all('input').first.value).to eq '2012-01-30 00:00' + expect(find('input.datetimepicker', match: :first).value).to eq '2012-01-30 00:00' end end end