Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
809 B

require "rails_helper"
RSpec.describe "Log Features" do
context "Searching for specific logs" do
context "I am logged in" do
let!(:user) { FactoryBot.create(:user, last_sign_in_at: Time.zone.now) }
let!(:log) { FactoryBot.create(:case_log) }
let!(:unwanted_logs) { FactoryBot.create_list(:case_log, 4) }
before do
visit("/logs")
fill_in("user[email]", with: user.email)
fill_in("user[password]", with: "pAssword1")
click_button("Sign in")
end
context "I can search for a specific log" do
it "there is a search bar for logs" do
expect(page).to have_field("search-field")
expect(page).to have_content("Search by log ID, tenant code, property reference or postcode")
end
end
end
end
end