Browse Source

moving other ways of searching to the request specs

pull/608/head
JG 3 years ago
parent
commit
e93ed80978
  1. 12
      spec/features/log_spec.rb

12
spec/features/log_spec.rb

@ -22,7 +22,6 @@ RSpec.describe "Log Features" do
expect(page).to have_button("Search")
end
context "using log ID" do
it "it displays log matching the log ID" do
fill_in("search-field", with: log_to_search.id)
click_button("Search")
@ -31,17 +30,6 @@ RSpec.describe "Log Features" do
expect(page).not_to have_content(another_organisation_log.id)
end
end
context "using log tenancy code" do
it "it displays log matching the tenancy code" do
fill_in("search-field", with: log_to_search.tenancy_code)
click_button("Search")
expect(page).to have_content(log_to_search.id)
expect(page).not_to have_content(same_organisation_log.id)
expect(page).not_to have_content(another_organisation_log.id)
end
end
end
end
end
end

Loading…
Cancel
Save