From: radhika Date: Fri, 15 Aug 2014 21:36:13 +0000 (-0400) Subject: 3112: add test to check the existence of "report issue" button in fiddlesticks error... X-Git-Tag: 1.1.0~2266^2~41 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c8a75fee345211d04894d749a7d8bfcd0925c9f1 3112: add test to check the existence of "report issue" button in fiddlesticks error page --- diff --git a/apps/workbench/test/integration/errors_test.rb b/apps/workbench/test/integration/errors_test.rb index d64ce35ecd..3f00f0e097 100644 --- a/apps/workbench/test/integration/errors_test.rb +++ b/apps/workbench/test/integration/errors_test.rb @@ -73,4 +73,26 @@ class ErrorsTest < ActionDispatch::IntegrationTest assert(page.has_no_text?(/fiddlesticks/i), "unrouted request returned a generic error page, not 404") end + + test "API error page has Report problem button" do + visit page_with_token("active") + + original_arvados_v1_base = Rails.configuration.arvados_v1_base + + begin + # point to a bad api server url to generate fiddlesticks error + Rails.configuration.arvados_v1_base = "https://[100::f]:1/" + + visit page_with_token("active") + + assert(page.has_text?(/fiddlesticks/i), + "Not on an error page after making an SSH key out of scope") + + # check the "Report problem" button + assert page.has_link? 'Report problem' + ensure + Rails.configuration.arvados_v1_base = original_arvados_v1_base + end + end + end