mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
16 lines
344 B
Ruby
16 lines
344 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ReportsHelper
|
|
def run_report
|
|
click_on "Go"
|
|
|
|
expect(page).to have_button "Go", disabled: true
|
|
expect(page).to have_selector ".loading"
|
|
|
|
perform_enqueued_jobs(only: ReportJob)
|
|
|
|
expect(page).not_to have_selector ".loading"
|
|
expect(page).to have_button "Go", disabled: false
|
|
end
|
|
end
|