mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Remove ineffective sorting spec
The spec was not really testing the order of users appearing on the page. It's also a UX detail only visible to super admins which is not important to test. So I'm not investing time to fix it.
This commit is contained in:
@@ -18,28 +18,6 @@ RSpec.describe "Managing users" do
|
||||
click_link "Users"
|
||||
end
|
||||
|
||||
context "users index page with sorting" do
|
||||
before(:each) do
|
||||
click_link "users_email_title"
|
||||
end
|
||||
|
||||
it "should list users with order email asc" do
|
||||
expect(page).to have_css('table#listing_users')
|
||||
within("table#listing_users") do
|
||||
expect(page).to have_content("a@example.com")
|
||||
expect(page).to have_content("b@example.com")
|
||||
end
|
||||
end
|
||||
|
||||
it "should list users with order email desc" do
|
||||
click_link "users_email_title"
|
||||
within("table#listing_users") do
|
||||
expect(page).to have_content("a@example.com")
|
||||
expect(page).to have_content("b@example.com")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "searching users" do
|
||||
it "should display the correct results for a user search" do
|
||||
fill_in "q_email_cont", with: "a@example"
|
||||
|
||||
Reference in New Issue
Block a user