We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d08c82f commit 2ee1d31Copy full SHA for 2ee1d31
spec/system/reports/index_spec.rb
@@ -108,5 +108,17 @@
108
click_on "Download Report"
109
expect(page).to have_text("Downloading Report")
110
end
111
+ def select_report_filter_option(select_id, option)
112
+ expect(page).to have_select(select_id, with_options: [option])
113
+ find("##{select_id}").select(option)
114
+ end
115
+
116
+ def set_report_date_range(start_date:, end_date:)
117
+ fill_in "report_start_date", with: start_date
118
+ fill_in "report_end_date", with: end_date
119
120
121
+ def choose_report_radio_option(field_name, value)
122
+ find("input[name=\"report[#{field_name}]\"][value=\"#{value}\"]", visible: :all).click
123
124
0 commit comments