Browse Source

CLDC-4523: Use new feedback form link (#3390)

* feat: use new feedback form link and use shared ref

* refactor: linting

* refactor: linting

* feat: fix unfrozen time-dependent test
main v0.6.22
Nat Dean-Lewis 2 weeks ago committed by GitHub
parent
commit
0c684dd6fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      app/views/layouts/_feedback.html.erb
  2. 2
      config/locales/en.yml
  3. 10
      spec/requests/sales_logs_controller_spec.rb

2
app/views/layouts/_feedback.html.erb

@ -10,7 +10,7 @@
</div> </div>
</div> </div>
<div class="gem-c-feedback__prompt-questions"> <div class="gem-c-feedback__prompt-questions">
<a class="govuk-button gem-c-feedback__prompt-link" target="_blank" href="https://forms.office.com/e/thT1Vm7edm"> <a class="govuk-button gem-c-feedback__prompt-link" target="_blank" href="<%= I18n.t("feedback_form") %>">
Give feedback (opens in a new tab) Give feedback (opens in a new tab)
</a> </a>
</div> </div>

2
config/locales/en.yml

@ -31,7 +31,7 @@
en: en:
service_name: "Submit social housing lettings and sales data (CORE)" service_name: "Submit social housing lettings and sales data (CORE)"
feedback_form: "https://forms.office.com/e/thT1Vm7edm" feedback_form: "https://forms.cloud.microsoft/Pages/ResponsePage.aspx?id=EGg0v32c3kOociSi7zmVqH_EURPnoZhLtbsnFZn-HdpUMEw2M04xWDc2QVNPNTBCMjQ1WDE0UU9HUi4u"
organisation: organisation:
created: "%{organisation} was created." created: "%{organisation} was created."
updated: "Organisation details updated." updated: "Organisation details updated."

10
spec/requests/sales_logs_controller_spec.rb

@ -915,6 +915,16 @@ RSpec.describe SalesLogsController, type: :request do
end end
context "with sales logs from a closed previous collection period" do context "with sales logs from a closed previous collection period" do
# These examples need logs in the archived collection year,
# so we have to enforce we are in the crossover period
around do |example|
Timecop.freeze(current_collection_start_date) do
Singleton.__init__(FormHandler)
example.run
end
Singleton.__init__(FormHandler)
end
let(:completed_sales_log) do let(:completed_sales_log) do
FactoryBot.create( FactoryBot.create(
:sales_log, :sales_log,

Loading…
Cancel
Save