X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d80d6de97c0e54249bdbd1f7c92014ef6855448c..6d1c41d6fd83824669cd1a6d714ea6da1ae7ab4c:/apps/workbench/test/integration/trash_test.rb diff --git a/apps/workbench/test/integration/trash_test.rb b/apps/workbench/test/integration/trash_test.rb index d01f636dd8..22732a3d95 100644 --- a/apps/workbench/test/integration/trash_test.rb +++ b/apps/workbench/test/integration/trash_test.rb @@ -46,7 +46,9 @@ class TrashTest < ActionDispatch::IntegrationTest wait_for_ajax - assert_no_text expired1['name'] + assert_text "The collection with UUID #{expired1['uuid']} is in the trash" + + click_on "Click here to untrash '#{expired1['name']}'" # verify that the two un-trashed items are now shown in /collections page visit page_with_token('active', "/collections") @@ -76,25 +78,23 @@ class TrashTest < ActionDispatch::IntegrationTest # Un-trash item if method == "button" - within('tr', text: deleted['name']) do + within('tr', text: deleted['uuid']) do first('.fa-recycle').click end + assert_text "The group with UUID #{deleted['uuid']} is in the trash" + click_on "Click here to untrash '#{deleted['name']}'" else - within('tr', text: deleted['name']) do + within('tr', text: deleted['uuid']) do first('input').click end click_button 'Selection...' within('.selection-action-container') do click_link 'Un-trash selected items' end + wait_for_ajax + assert_no_text deleted['uuid'] end - wait_for_ajax - - assert_no_text deleted['name'] - visit current_path - assert_no_text deleted['name'] - # check that the un-trashed item are now shown on parent project page visit page_with_token('active', "/projects/zzzzz-tpzed-xurymjxw79nv3jz") click_on "Subprojects"