X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e91c02f2ceb2b72a77846a0c31f5eca22b9b0a65..d9b9e13be14ac048bdbb501ac60fc1f0f02658e6:/test/controllers/dashboards_controller_test.rb?ds=sidebyside diff --git a/test/controllers/dashboards_controller_test.rb b/test/controllers/dashboards_controller_test.rb index 5073df8cc..84f9610e5 100644 --- a/test/controllers/dashboards_controller_test.rb +++ b/test/controllers/dashboards_controller_test.rb @@ -28,7 +28,9 @@ class DashboardsControllerTest < ActionDispatch::IntegrationTest # Friends should be visible as we're now logged in assert_select "div#friends-container" do - assert_select "div.contact-activity", :count => 1 + assert_select "div" do + assert_select "a[href='/user/#{ERB::Util.u(friend_user.display_name)}']", :count => 1 + end end end end