|
|
|
@ -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 = "<h2 class=\"govuk-visually-hidden\"> 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 = "<span class=\"govuk-visually-hidden\">User </span>#{user.id}" |
|
|
|
|
unauthorized_case_row_log = "<span class=\"govuk-visually-hidden\">User </span>#{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) |
|
|
|
|