X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5523be76b00bc58cf9568cf7a1353326c6795cac..add9525f2f196e2490a6876fed590d1e139ea659:/apps/workbench/test/integration/report_issue_test.rb diff --git a/apps/workbench/test/integration/report_issue_test.rb b/apps/workbench/test/integration/report_issue_test.rb index 7d4058db4a..4a15851636 100644 --- a/apps/workbench/test/integration/report_issue_test.rb +++ b/apps/workbench/test/integration/report_issue_test.rb @@ -59,6 +59,11 @@ class ReportIssueTest < ActionDispatch::IntegrationTest # enter a report text and click on report page.find_field('report_issue_text').set 'my test report text' assert page.has_button?('Send problem report'), 'Send problem report button not enabled after entering text' + + report = mock + report.expects(:deliver).returns true + IssueReporter.expects(:send_report).returns report + click_button 'Send problem report' # ajax success updated button texts and added footer message