diff --git a/app/views/mailers/contact_mailer/identification_requested.html.erb b/app/views/mailers/contact_mailer/identification_requested.html.erb index bb1d3f8a7..63bfda697 100644 --- a/app/views/mailers/contact_mailer/identification_requested.html.erb +++ b/app/views/mailers/contact_mailer/identification_requested.html.erb @@ -8,7 +8,7 @@ Teie registripidaja <%= registrar.name %> on palunud Teil kinnitada oma isikut,

Palun kinnitage oma isikut, et jätkata.

-" style="display: inline-block; padding: 10px 20px; background-color: #007BFF; color: white; text-decoration: none; border-radius: 5px;">Jätka eeID-ga +" style="display: inline-block; padding: 10px 20px; background-color: #007BFF; color: white; text-decoration: none; border-radius: 5px;">Jätka eeID-ga

Kontaktandmed:
<%= render 'mailers/shared/registrant/registrant.et.html', registrant: contact, with_phone: true %> @@ -24,7 +24,7 @@ Your registrar <%= registrar.name %> has requested that you verify your identity

Please confirm your identity to continue.

-" style="display: inline-block; padding: 10px 20px; background-color: #007BFF; color: white; text-decoration: none; border-radius: 5px;">Continue with eeID +" style="display: inline-block; padding: 10px 20px; background-color: #007BFF; color: white; text-decoration: none; border-radius: 5px;">Continue with eeID

Contact information:
<%= render 'mailers/shared/registrant/registrant.en.html', registrant: contact, with_phone: true %> diff --git a/test/integration/eeid/identification_requests_webhook_test.rb b/test/integration/eeid/identification_requests_webhook_test.rb index 625cfa3a5..136c9df9a 100644 --- a/test/integration/eeid/identification_requests_webhook_test.rb +++ b/test/integration/eeid/identification_requests_webhook_test.rb @@ -32,7 +32,10 @@ class Eeid::IdentificationRequestsWebhookTest < ActionDispatch::IntegrationTest assert_equal({ 'status' => 'success' }, JSON.parse(response.body)) assert_not_nil @contact.reload.verified_at assert_equal @contact.verification_id, '123' - assert_notify_registrar('Successful Contact Verification') + assert_notify_registrar( + "Teade: Kontakti [#{@contact.code}] kinnitamine edukalt lõpule viidud " \ + "/ Notification: Contact [#{@contact.code}] verification successfully completed" + ) end test 'should return unauthorized for invalid HMAC signature' do diff --git a/test/integration/repp/v1/contacts/verify_test.rb b/test/integration/repp/v1/contacts/verify_test.rb index 1d62c4b83..e51c43653 100644 --- a/test/integration/repp/v1/contacts/verify_test.rb +++ b/test/integration/repp/v1/contacts/verify_test.rb @@ -23,7 +23,7 @@ class ReppV1ContactsVerifyTest < ActionDispatch::IntegrationTest claims_required: [{ type: 'sub', value: "#{@contact.ident_country_code}#{@contact.ident}" }], reference: @contact.code } - ).to_return(status: 200, body: { id: '123' }.to_json, headers: { 'Content-Type' => 'application/json' }) + ).to_return(status: 200, body: { id: '123', link: 'http://link' }.to_json, headers: { 'Content-Type' => 'application/json' }) end def test_returns_error_when_not_found @@ -47,7 +47,10 @@ class ReppV1ContactsVerifyTest < ActionDispatch::IntegrationTest assert contact.present? assert contact.ident_request_sent_at assert_nil contact.verified_at - assert_notify_contact('Identification requested') + assert_notify_contact( + 'Palun kinnitage oma isik domeeni toimingute jätkamiseks ' \ + '/ Please verify your identity to proceed with domain operations' + ) end def test_handles_non_epp_error