Browse Source

Check for link with log id rather than just log id anywhere in html

pull/621/head
baarkerlounger 3 years ago
parent
commit
38436238a0
  1. 6
      spec/features/organisation_spec.rb

6
spec/features/organisation_spec.rb

@ -122,9 +122,9 @@ RSpec.describe "User Features" do
end end
it "displays log matching the log ID" do it "displays log matching the log ID" do
expect(page).to have_content(log_to_search.id) expect(page).to have_link(log_to_search.id.to_s)
other_logs.each do |log| other_logs.each do |log|
expect(page).not_to have_content(log.id) expect(page).not_to have_link(log.id.to_s)
end end
end end
@ -135,7 +135,7 @@ RSpec.describe "User Features" do
it "displays the logs belonging to the same organisation after I clear the search result after I clear the search resultss" do it "displays the logs belonging to the same organisation after I clear the search result after I clear the search resultss" do
click_link("Clear search") click_link("Clear search")
expect(page).to have_content(log_to_search.id) expect(page).to have_link(log_to_search.id.to_s)
end end
end end
end end

Loading…
Cancel
Save