X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f00ee875d99ba65aaac178e762fbd3e35ddc5f87..8f46cb4ad6974b0fc54acc9c9f16fbea7573d75d:/apps/workbench/test/integration/projects_test.rb diff --git a/apps/workbench/test/integration/projects_test.rb b/apps/workbench/test/integration/projects_test.rb index 38d4063ce2..8a80bc2eb4 100644 --- a/apps/workbench/test/integration/projects_test.rb +++ b/apps/workbench/test/integration/projects_test.rb @@ -27,21 +27,23 @@ class ProjectsTest < ActionDispatch::IntegrationTest test 'Add a new name, then edit it, without creating a duplicate' do project_uuid = api_fixture('groups')['aproject']['uuid'] - specimen_uuid = api_fixture('specimens')['owned_by_aproject_with_no_name_link']['uuid'] + specimen_uuid = api_fixture('traits')['owned_by_aproject_with_no_name']['uuid'] visit page_with_token 'active', '/projects/' + project_uuid click_link 'Other objects' - within(".selection-action-container") do - within (first('tr', text: 'Specimen')) do + within '.selection-action-container' do + # Wait for the tab to load: + assert_selector 'tr[data-kind="arvados#trait"]' + within first('tr', text: 'Trait') do find(".fa-pencil").click find('.editable-input input').set('Now I have a name.') find('.glyphicon-ok').click - find('.editable', text: 'Now I have a name.').click + assert_selector '.editable', text: 'Now I have a name.' find(".fa-pencil").click find('.editable-input input').set('Now I have a new name.') find('.glyphicon-ok').click - end + end wait_for_ajax - find('.editable', text: 'Now I have a new name.') + assert_selector '.editable', text: 'Now I have a new name.' end visit current_path click_link 'Other objects'