X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/abd848823a9b7d24f2d9fa9bb76eb95f5e01e947..82c23c04e3105dfd0d2167a53552df56b0a81785:/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 f6a34bcac9..d64ce35ecd 100644 --- a/apps/workbench/test/integration/errors_test.rb +++ b/apps/workbench/test/integration/errors_test.rb @@ -53,4 +53,24 @@ class ErrorsTest < ActionDispatch::IntegrationTest "Not on an error page after making an SSH key out of scope") assert(page_has_error_token?(start_stamp), "no error token on 404 page") end + + test "showing a bad UUID returns 404" do + visit(page_with_token("active", "/pipeline_templates/zzz")) + assert(page.has_no_text?(/fiddlesticks/i), + "trying to show a bad UUID rendered a fiddlesticks page, not 404") + end + + test "404 page includes information about missing object" do + visit(page_with_token("active", "/groups/zazazaz")) + assert(page.has_text?(/group with UUID zazazaz/i), + "name of searched group missing from 404 page") + end + + test "unrouted 404 page works" do + visit(page_with_token("active", "/__asdf/ghjk/zxcv")) + assert(page.has_text?(/not found/i), + "unrouted page missing 404 text") + assert(page.has_no_text?(/fiddlesticks/i), + "unrouted request returned a generic error page, not 404") + end end