diff --git a/spec/requests/duplicate_logs_controller_spec.rb b/spec/requests/duplicate_logs_controller_spec.rb index c2c05e748..1251a75a9 100644 --- a/spec/requests/duplicate_logs_controller_spec.rb +++ b/spec/requests/duplicate_logs_controller_spec.rb @@ -177,7 +177,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 3) expect(page).to have_content("Q20 - Buyer 1’s age", count: 3) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 3) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 3) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 3) expect(page).to have_content("Q15 - Postcode", count: 3) expect(page).to have_link("Change", count: 21) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?first_remaining_duplicate_id=#{duplicate_logs[0].id}&organisation_id=#{sales_log.owning_organisation_id}&original_log_id=#{sales_log.id}&referrer=duplicate_logs") @@ -195,7 +195,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 3) expect(page).to have_content("Q20 - Buyer 1’s age", count: 3) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 3) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 3) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 3) expect(page).to have_content("Postcode (from UPRN)", count: 3) expect(page).to have_link("Change", count: 21) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?first_remaining_duplicate_id=#{duplicate_logs[0].id}&original_log_id=#{sales_log.id}&referrer=duplicate_logs") @@ -223,7 +223,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 1) expect(page).to have_content("Q20 - Buyer 1’s age", count: 1) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 1) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 1) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 1) expect(page).to have_content("Q15 - Postcode", count: 1) expect(page).to have_link("Change", count: 7) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?original_log_id=#{sales_log.id}&referrer=interruption_screen") @@ -249,7 +249,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 1) expect(page).to have_content("Q20 - Buyer 1’s age", count: 1) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 1) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 1) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 1) expect(page).to have_content("Q15 - Postcode", count: 1) expect(page).to have_link("Change", count: 7) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?original_log_id=#{sales_log.id}&referrer=interruption_screen") @@ -384,7 +384,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 3) expect(page).to have_content("Q20 - Buyer 1’s age", count: 3) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 3) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 3) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 3) expect(page).to have_content("Q15 - Postcode", count: 3) expect(page).to have_link("Change", count: 18) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?first_remaining_duplicate_id=#{duplicate_logs[0].id}&original_log_id=#{sales_log.id}&referrer=duplicate_logs") @@ -412,7 +412,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 1) expect(page).to have_content("Q20 - Buyer 1’s age", count: 1) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 1) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 1) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 1) expect(page).to have_content("Q15 - Postcode", count: 1) expect(page).to have_link("Change", count: 6) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?original_log_id=#{sales_log.id}&referrer=interruption_screen") @@ -438,7 +438,7 @@ RSpec.describe DuplicateLogsController, type: :request do expect(page).to have_content("Q2 - Purchaser code", count: 1) expect(page).to have_content("Q20 - Buyer 1’s age", count: 1) expect(page).to have_content("Q21 - Buyer 1’s gender identity", count: 1) - expect(page).to have_content("Q25 - Buyer 1's working situation", count: 1) + expect(page).to have_content("Q25 - Buyer 1’s working situation", count: 1) expect(page).to have_content("Q15 - Postcode", count: 1) expect(page).to have_link("Change", count: 6) expect(page).to have_link("Change", href: "/sales-logs/#{sales_log.id}/purchaser-code?original_log_id=#{sales_log.id}&referrer=interruption_screen") diff --git a/spec/requests/form_controller_spec.rb b/spec/requests/form_controller_spec.rb index 4ae66e0d5..a6c80abc6 100644 --- a/spec/requests/form_controller_spec.rb +++ b/spec/requests/form_controller_spec.rb @@ -1196,7 +1196,7 @@ RSpec.describe FormController, type: :request do it "displays a success banner" do follow_redirect! - expect(response.body).to include("You have successfully updated Q31: lead tenant's age") + expect(response.body).to include("You have successfully updated Q31: lead tenant’s age") end end