|
|
@ -379,6 +379,10 @@ RSpec.describe UsersController, type: :request do |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
expect(page).to have_content(other_user.name) |
|
|
|
expect(page).to have_content(other_user.name) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "updates the table caption" do |
|
|
|
|
|
|
|
expect(page).to have_content("Matches 1 of 5 total users") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when we need case insensitive search" do |
|
|
|
context "when we need case insensitive search" do |
|
|
@ -411,6 +415,10 @@ RSpec.describe UsersController, type: :request do |
|
|
|
expect(page).not_to have_content(other_org_user.name) |
|
|
|
expect(page).not_to have_content(other_org_user.name) |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "updates the table caption" do |
|
|
|
|
|
|
|
expect(page).to have_content("Matches 2 of 5 total users") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
@ -832,6 +840,10 @@ RSpec.describe UsersController, type: :request do |
|
|
|
expect(page).not_to have_content(inactive_user.name) |
|
|
|
expect(page).not_to have_content(inactive_user.name) |
|
|
|
expect(page).not_to have_content(other_org_user.name) |
|
|
|
expect(page).not_to have_content(other_org_user.name) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "updates the table caption" do |
|
|
|
|
|
|
|
expect(page).to have_content("Matches 1 of 4 total users") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
context "when we need case insensitive search" do |
|
|
|
context "when we need case insensitive search" do |
|
|
@ -867,6 +879,10 @@ RSpec.describe UsersController, type: :request do |
|
|
|
expect(page).to have_content(other_org_user.name) |
|
|
|
expect(page).to have_content(other_org_user.name) |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
expect(page).not_to have_content(user.name) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
it "updates the table caption" do |
|
|
|
|
|
|
|
expect(page).to have_content("Matches 2 of 4 total users") |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|