projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '5626-git-server-hostname' into 4752-docker-websockets
[arvados.git]
/
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 8198be4fb395bc5ff2bca82be45893181c593992..32f16a68dfa9bb7da49f0adbce9881aa0480aeda 100644
(file)
--- 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'
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'
# enter a report text and click on report
find_field('report_issue_text').set 'my test report text'
click_button 'Send problem report'