Skip to content

Commit 1c1a4b2

Browse files
authored
Merge pull request #2777 from govuk-forms/hannahkc-end-of-form
Change 'end of form' to 'end of the form'
2 parents cad5ce9 + 7fd3f44 commit 1c1a4b2

6 files changed

Lines changed: 15 additions & 15 deletions

File tree

config/locales/en.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,13 +1364,13 @@ en:
13641364
condition_answer_value_text_with_errors: "[Answer not selected]"
13651365
condition_check_page_text: "“%{check_page_question_text}”"
13661366
condition_compact_html: If the answer is “%{answer_value}” go to %{goto_page_question_number}, “%{goto_page_question_text}”
1367-
condition_compact_html_end_of_form: If the answer is “%{answer_value}”<br> then skip to end of form
1367+
condition_compact_html_end_of_form: If the answer is “%{answer_value}”<br> then skip to the end of the form
13681368
condition_compact_html_exit_page: If the answer is “%{answer_value}” go to the exit page, “%{exit_page_heading}”
13691369
condition_compact_html_secondary_skip: Go to %{goto_page_question_number}, “%{goto_page_question_text}”
1370-
condition_compact_html_secondary_skip_to_end_of_form: Go to end of form
1370+
condition_compact_html_secondary_skip_to_end_of_form: Go to the end of the form
13711371
condition_description: If %{check_page_question_text} is answered as %{answer_value} go to %{goto_page_question_text}
13721372
condition_goto_exit_page: exit page, “%{exit_page_heading}”
1373-
condition_goto_page_end_of_form: end of form.
1373+
condition_goto_page_end_of_form: the end of the form.
13741374
condition_goto_page_text: "%{goto_page_question_number}, “%{goto_page_question_text}”"
13751375
condition_goto_page_text_with_errors: "[Question not selected]"
13761376
condition_group_description: 'Go to %{goto_page_question_number}, ‘%{goto_page_question_text}’ if the answer is:'
@@ -1380,7 +1380,7 @@ en:
13801380
other: Question %{question_number}’s routes
13811381
condition_name: Question %{question_number}’s routes
13821382
edit_exit_page: Edit “%{exit_page_heading}”
1383-
end_of_form: End of form
1383+
end_of_form: End of the form
13841384
exit_page: Add an exit page
13851385
exit_page_label: An ‘exit page’ to leave the form
13861386
none_of_the_above: None of the above
@@ -1396,7 +1396,7 @@ en:
13961396
delete: Delete
13971397
delete_route: Delete all routes
13981398
edit: Edit
1399-
end_of_form: End of form
1399+
end_of_form: End of the form
14001400
errors:
14011401
answer_value_doesnt_exist: The answer that route 1 is based on no longer exists - edit or delete this route
14021402
cannot_have_goto_page_before_routing_page: The question route 1 skips to cannot be before question %{question_number} - edit or delete this route
@@ -2001,8 +2001,8 @@ en:
20012001
date_of_birth: Date of birth
20022002
other_date: Date
20032003
end_of_form:
2004-
cy: End of form
2005-
en: End of form
2004+
cy: End of the form
2005+
en: End of the form
20062006
guidance_markdown: Guidance
20072007
hint_text: Hint text
20082008
name_type:

spec/components/page_list_component/view_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
end
388388

389389
it "returns description with 'Check your answers' text" do
390-
expected_text = "If “#{pages.first.question_text}” is answered as “#{condition.answer_value}” go to end of form."
390+
expected_text = "If “#{pages.first.question_text}” is answered as “#{condition.answer_value}” go to the end of the form."
391391
expect(page_list_component.condition_description(condition)).to eq(expected_text)
392392
end
393393
end

spec/features/form/add_or_edit_questions/add_branching_to_a_form_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def then_i_should_see_the_secondary_skip_page
8686

8787
def and_i_select_a_skip_page_and_goto_page
8888
select form.pages[3].question_text, from: "pages_secondary_skip_input[routing_page_id]"
89-
select "End of form", from: "pages_secondary_skip_input[goto_page_id]"
89+
select "End of the form", from: "pages_secondary_skip_input[goto_page_id]"
9090

9191
create(:condition, id: 2, check_page_id: form.pages.first.id, routing_page_id: form.pages[3].id, goto_page_id: nil, skip_to_end: true)
9292
form.pages.each(&:reload)
@@ -98,7 +98,7 @@ def then_i_should_see_the_secondary_skip_on_the_routes_page
9898
expect(page).to have_text "Route for any other answer"
9999
expect(page).to have_text "Continue to"
100100
expect(page).to have_text form.pages[3].question_text
101-
expect(page).to have_text "End of form"
101+
expect(page).to have_text "End of the form"
102102
expect_page_to_have_no_axe_errors(page)
103103
end
104104
end

spec/presenters/route_summary_card_data_presenter_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
pages.each(&:reload)
6666
end
6767

68-
it 'shows "End of form" as destination' do
68+
it 'shows "End of the form" as destination' do
6969
result = service.summary_card_data
70-
expect(result[0][:rows][1][:value][:text]).to eq("End of form")
70+
expect(result[0][:rows][1][:value][:text]).to eq("End of the form")
7171
end
7272
end
7373

spec/services/routes/build_service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199

200200
expected_other_options = [
201201
["3. question 3", pages.third.id],
202-
["End of form", "end_of_form"],
202+
["End of the form", "end_of_form"],
203203
]
204204
all_other_options = options.reject { |opt| opt[1] == Forms::RouteInput::DEFAULT_VALUE }
205205

spec/services/step_summary_table_service_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ def create_page(attributes = {})
754754
exit_page_heading_cy: nil,
755755
exit_page_markdown: nil,
756756
exit_page_markdown_cy: nil,
757-
goto_page: "End of form",
758-
goto_page_cy: "End of form",
757+
goto_page: "End of the form",
758+
goto_page_cy: "End of the form",
759759
routing_page: "11. Question to be skipped",
760760
routing_page_cy: "11. Question to be skipped (Welsh)",
761761
secondary_skip: false }]

0 commit comments

Comments
 (0)