20850: Fix test selector
authorPeter Amstutz <peter.amstutz@curii.com>
Sun, 3 Sep 2023 16:44:34 +0000 (12:44 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Sun, 3 Sep 2023 16:44:34 +0000 (12:44 -0400)
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

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