Browse Source

Update flaky test (#2736)

pull/2728/head^2
kosiakkatrina 2 months ago committed by GitHub
parent
commit
af430ef373
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      spec/requests/locations_controller_spec.rb

4
spec/requests/locations_controller_spec.rb

@ -180,7 +180,7 @@ RSpec.describe LocationsController, type: :request do
context "when signed in as a data coordinator user" do
let(:user) { create(:user, :data_coordinator) }
let(:scheme) { create(:scheme, owning_organisation: user.organisation) }
let(:scheme) { create(:scheme, owning_organisation: user.organisation, service_name: "Some name") }
let!(:locations) { create_list(:location, 3, scheme:, startdate: Time.zone.local(2022, 4, 1)) }
before do
@ -288,7 +288,7 @@ RSpec.describe LocationsController, type: :request do
it "has search in the title" do
expected_title = CGI.escapeHTML("#{scheme.service_name} (1 location matching ‘#{search_param}’) - Submit social housing lettings and sales data (CORE) - GOV.UK")
expect(page).to have_title(expected_title)
expect(page.title).to eq(expected_title)
end
end

Loading…
Cancel
Save