X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/630b52566620e906c2037bc498cdd36b93240bd6..379717415ec5f772ab2f54e263c2c3f44d77f70f:/apps/workbench/test/integration/errors_test.rb diff --git a/apps/workbench/test/integration/errors_test.rb b/apps/workbench/test/integration/errors_test.rb index 8198be4fb3..32f16a68df 100644 --- a/apps/workbench/test/integration/errors_test.rb +++ b/apps/workbench/test/integration/errors_test.rb @@ -103,6 +103,10 @@ class ErrorsTest < ActionDispatch::IntegrationTest assert_no_selector 'a,button:not([disabled])', text: 'Send problem report' assert_selector 'a,button', text: 'Cancel' + report = mock + report.expects(:deliver).returns true + IssueReporter.expects(:send_report).returns report + # enter a report text and click on report find_field('report_issue_text').set 'my test report text' click_button 'Send problem report'