@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundArab < ::Form::Question
@header="Which of the following best describes buyer 1’s Arab background?"
@header="Which of the following best describes buyer 1’s Arab background?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundAsian < ::Form::Question
@header="Which of the following best describes buyer 1’s Asian or Asian British background?"
@header="Which of the following best describes buyer 1’s Asian or Asian British background?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
@header="Which of the following best describes buyer 1’s Black, African, Caribbean or Black British background?"
@header="Which of the following best describes buyer 1’s Black, African, Caribbean or Black British background?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundMixed < ::Form::Question
@header="Which of the following best describes buyer 1’s Mixed or Multiple ethnic groups background?"
@header="Which of the following best describes buyer 1’s Mixed or Multiple ethnic groups background?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1EthnicGroup < ::Form::Question
@header="What is buyer 1’s ethnic group?"
@header="What is buyer 1’s ethnic group?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@ -6,7 +6,7 @@ class Form::Sales::Questions::Buyer1LiveInProperty < ::Form::Question
@header="Will buyer 1 live in the property?"
@header="Will buyer 1 live in the property?"
@type="radio"
@type="radio"
@answer_options=ANSWER_OPTIONS
@answer_options=ANSWER_OPTIONS
@hint_text="Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@hint_text=form.start_year_after_2024??"": "Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest."
@header="What is buyer #{buyer_index}’s nationality?"
@header="What is buyer #{buyer_index}’s nationality?"
@type="radio"
@type="radio"
@hint_text=buyer_index==1?"Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest.":""
@hint_text="If buyer #{buyer_index} is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the buyer should decide which country to enter."
@ -19,14 +19,6 @@ class Form::Sales::Questions::NationalityAllGroup < ::Form::Question
"0"=>{"value"=>"Buyer prefers not to say"},
"0"=>{"value"=>"Buyer prefers not to say"},
}.freeze
}.freeze
defhint_text
if@buyer_index==1
"Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest. If buyer 1 is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the buyer should decide which country to enter."
else
"If buyer 2 is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the buyer should decide which country to enter."
@ -47,7 +47,7 @@ RSpec.describe Form::Sales::Questions::NationalityAllGroup, type: :model do
end
end
it"has the correct hint"do
it"has the correct hint"do
expect(question.hint_text).toeq"Buyer 1 is the person in the household who does the most paid work. If it’s a joint purchase and the buyers do the same amount of paid work, buyer 1 is whoever is the oldest. If buyer 1 is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the buyer should decide which country to enter."
expect(question.hint_text).toeq"If buyer 1 is a dual national of the United Kingdom and another country, enter United Kingdom. If they are a dual national of two other countries, the buyer should decide which country to enter."