Replay 02d46b7c51 lost in the last merge from master

This commit is contained in:
Luis Ramos
2020-06-02 16:11:03 +01:00
parent c9a7a6e897
commit beb1b3f3bc

View File

@@ -117,10 +117,10 @@ feature '
end
describe 'listing order cycles with other locales' do
let!(:oc_de) { create(:simple_order_cycle, name: 'oc', orders_open_at: '2012-01-01 00:00') }
let!(:oc_pt) { create(:simple_order_cycle, name: 'oc', orders_open_at: '2012-01-01 00:00') }
around(:each) do |spec|
I18n.locale = :de
I18n.locale = :pt
spec.run
I18n.locale = :en
end
@@ -130,7 +130,7 @@ feature '
quick_login_as_admin
visit admin_order_cycles_path
within("tr.order-cycle-#{oc_de.id}") do
within("tr.order-cycle-#{oc_pt.id}") do
expect(find('input.datetimepicker', match: :first).value).to start_with '2012-01-01 00:00'
find('img.ui-datepicker-trigger', match: :first).click
end
@@ -142,7 +142,7 @@ feature '
find('button.ui-datepicker-close', match: :first).click
end
within("tr.order-cycle-#{oc_de.id}") do
within("tr.order-cycle-#{oc_pt.id}") do
expect(find('input.datetimepicker', match: :first).value).to eq '2012-01-30 00:00'
end
end