closes #3140
[arvados.git] / apps / workbench / test / integration / projects_test.rb
index d1bf403b9210de078d5974b12f3f03c5df29191c..eb38cfd5c3e56251008c4a0d25b1e35b11e0c897 100644 (file)
@@ -29,6 +29,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
     project_uuid = api_fixture('groups')['aproject']['uuid']
     specimen_uuid = api_fixture('specimens')['owned_by_aproject_with_no_name_link']['uuid']
     visit page_with_token 'active', '/projects/' + project_uuid
+    click_link 'Other objects'
     within(".selection-action-container") do
       within (first('tr', text: 'Specimen')) do
         find(".fa-pencil").click
@@ -43,6 +44,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
       find('.editable', text: 'Now I have a new name.')
     end
     visit current_path
+    click_link 'Other objects'
     within '.selection-action-container' do
       find '.editable', text: 'Now I have a new name.'
       page.assert_no_selector '.editable', text: 'Now I have a name.'
@@ -88,7 +90,7 @@ class ProjectsTest < ActionDispatch::IntegrationTest
   end
 
   def count_shares
-    page.all("#project_sharing tr").size
+    find('#project_sharing').all('tr').size
   end
 
   def add_share_and_check(share_type, name)