20862: Merge branch 'main' into 20862-google-api-client
[arvados.git] / apps / workbench / test / integration / search_box_test.rb
index 1eed15882ad00bb8fa16fafcb728173fc1fd4c88..51d615fe2d3383007bee3f7c7c0b441ef36c5e65 100644 (file)
@@ -74,7 +74,7 @@ class SearchBoxTest < ActionDispatch::IntegrationTest
         assert page.has_text?('Search'), 'No text - Search'
         assert page.has_text?('Cancel'), 'No text - Cancel'
         assert_selector('div', text: publicly_accessible_project['name'])
-        find(:xpath, '//div[./span[contains(.,publicly_accessible_project["uuid"])]]').click
+        find("div[data-object-uuid=#{publicly_accessible_project["uuid"]}]").click
 
         click_button 'Show'
       end