mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #12785 from filipefurtad0/spec_for_#12768
Reproduces S2 bug #12768
This commit is contained in:
@@ -144,8 +144,8 @@ RSpec.describe '
|
||||
|
||||
# click save
|
||||
click_button('Save')
|
||||
expect(page.find('#order_cycle_name').value).to eq 'OC1 name updated'
|
||||
expect(page).to have_content('Your order cycle has been updated.')
|
||||
expect(page.find('#order_cycle_name').value).to eq 'OC1 name updated'
|
||||
|
||||
# Now change date range field value
|
||||
find('#order_cycle_orders_close_at').click
|
||||
@@ -157,9 +157,9 @@ RSpec.describe '
|
||||
expect(page).to have_content('You have unsaved changes')
|
||||
|
||||
click_button('Save')
|
||||
expect(page).to have_content('Your order cycle has been updated.')
|
||||
expect(page).not_to have_content "Orders are linked to this cycle"
|
||||
expect(page).to have_field 'order_cycle_orders_close_at', with: '2024-03-30 00:00'
|
||||
expect(page).to have_content('Your order cycle has been updated.')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -499,12 +499,16 @@ RSpec.describe '
|
||||
end
|
||||
|
||||
describe 'bulk coop report' do
|
||||
let!(:order) { create(:completed_order_with_totals) }
|
||||
|
||||
before do
|
||||
login_as_admin
|
||||
visit admin_reports_path
|
||||
end
|
||||
|
||||
it "generating Bulk Co-op Supplier Report" do
|
||||
pending("S2 bug #12768")
|
||||
|
||||
click_link "Bulk Co-op Supplier Report"
|
||||
run_report
|
||||
|
||||
|
||||
Reference in New Issue
Block a user