<%= govuk_link_to("Privacy notice", privacy_notice_path, class: "govuk-footer__link") %>
diff --git a/app/views/users/_user_list.html.erb b/app/views/users/_user_list.html.erb
index 780d481f0..fb370c914 100644
--- a/app/views/users/_user_list.html.erb
+++ b/app/views/users/_user_list.html.erb
@@ -49,6 +49,9 @@
<% end %>
<% row.cell(text: simple_format(org_cell(user), {}, wrapper_tag: "div")) %>
<% row.cell(text: user.active? ? user.last_sign_in_at&.to_formatted_s(:govuk_date) : "Deactivated") %>
+ <%= govuk_link_to users_path(user) do %>
+ User <%= user.id %>
+ <% end %>
<% end %>
<% end %>
<% end %>
diff --git a/spec/requests/organisations_controller_spec.rb b/spec/requests/organisations_controller_spec.rb
index d49e6a61a..945f468f7 100644
--- a/spec/requests/organisations_controller_spec.rb
+++ b/spec/requests/organisations_controller_spec.rb
@@ -131,12 +131,9 @@ RSpec.describe OrganisationsController, type: :request do
expect(response.body).to include(user.email)
end
- it "has a hidden header title" do
- expected_html = "
Users"
- expect(response.body).to include(expected_html)
- end
-
it "shows only active users in the current user's organisation" do
+ expected_case_row_log = "User #{user.id}"
+ unauthorized_case_row_log = "User #{other_org_user.id}"
expect(page).to have_content(user.name)
expect(page).to have_content(other_user.name)
expect(page).to have_content(inactive_user.name)