add main legal language to the amendment signing page

This commit is contained in:
Bilal
2020-07-29 09:47:44 +02:00
parent 9cbd8d31a8
commit 3c16effbe1
5 changed files with 19 additions and 14 deletions

View File

@@ -251,6 +251,10 @@ feature "User managing location releases" do
new_window = window_opened_by { click_link sign_amendment_link }
within_window new_window do
expect(page).to have_content amendments_heading
expect(page).to have_content body_clause_heading
expect(page).to have_content contract_template.body.to_plain_text
expect(page).to have_content contract_template.amendment_clause.to_plain_text
fill_in amendment_signer_name_field, with: 'Big Signer'
draw_signature file_fixture("signature.png"), amendment_signature_field
@@ -690,6 +694,10 @@ feature "User managing location releases" do
t 'public.amendments.new.amendment.heading'
end
def body_clause_heading
t 'public.amendments.new.body_clause.heading'
end
def amendment_signer_name_field
'location_release[amendment_signer_name]'
end