3114: Update test case: searching for own uuid now shows home project.
authorTom Clegg <tom@curoverse.com>
Mon, 18 Aug 2014 22:18:55 +0000 (18:18 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 18 Aug 2014 22:18:55 +0000 (18:18 -0400)
apps/workbench/test/integration/application_layout_test.rb

index 78842a408afd1060b63d5e81f45f91aba20ed8d9..19bb4c1c8470de3e3e12a7b9d57fdb7d1ec289f5 100644 (file)
@@ -213,8 +213,8 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
         page.find('.glyphicon-search').click
       end
 
-      # we should now be in the user's page as a result of search
-      assert page.has_text? user['first_name']
+      # we should now be in the user's home project as a result of search
+      assert_selector "#Data_collections[data-object-uuid='#{user['uuid']}']"
 
       # let's search again for an invalid valid uuid
       within('.navbar-fixed-top') do