X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..21bb2196ecfaba6ec1e7162b8e8901988945daf1:/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 f9054d0ac6..81d4bbbaa1 100644 --- a/apps/workbench/test/integration/errors_test.rb +++ b/apps/workbench/test/integration/errors_test.rb @@ -112,4 +112,17 @@ class ErrorsTest < ActionDispatch::IntegrationTest # out of the popup now and should be back in the error page assert_text 'fiddlesticks' end + + test "showing a trashed collection UUID gives untrash button" do + visit(page_with_token("active", "/collections/zzzzz-4zz18-trashedproj2col")) + assert(page.has_text?(/You must untrash the owner project to access this/i), + "missing untrash instructions") + end + + test "showing a trashed container request gives untrash button" do + visit(page_with_token("active", "/container_requests/zzzzz-xvhdp-cr5trashedcontr")) + assert(page.has_text?(/You must untrash the owner project to access this/i), + "missing untrash instructions") + end + end