|
|
|
|
@ -23,14 +23,14 @@ RSpec.describe Form::Sales::Pages::DiscountedSaleValueCheck, type: :model do
|
|
|
|
|
|
|
|
|
|
it "has the correct title_text" do |
|
|
|
|
expect(page.title_text).to eq({ |
|
|
|
|
"translation" => "forms.2024.sales.sale_information.discounted_sale_value_check.title_text", |
|
|
|
|
"translation" => "forms.2024.sales.soft_validations.discounted_sale_value_check.title_text", |
|
|
|
|
"arguments" => [{ "arguments_for_key" => "value_with_discount", "i18n_template" => "value_with_discount", "key" => "field_formatted_as_currency" }], |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct informative_text" do |
|
|
|
|
expect(page.informative_text).to eq({ |
|
|
|
|
"translation" => "forms.2024.sales.sale_information.discounted_sale_value_check.informative_text", |
|
|
|
|
"translation" => "forms.2024.sales.soft_validations.discounted_sale_value_check.informative_text", |
|
|
|
|
"arguments" => [{ "arguments_for_key" => "mortgage_deposit_and_grant_total", "i18n_template" => "mortgage_deposit_and_grant_total", "key" => "field_formatted_as_currency" }], |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|