mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Tidy up order cycle spec
This commit is contained in:
committed by
Maikel Linke
parent
f28471e456
commit
41ce7047cc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user