Merge pull request #2737 from internetee/improve-verification-translations

Improved verification email translations
This commit is contained in:
Timo Võhmar 2025-01-15 16:45:44 +02:00 committed by GitHub
commit 8dcc287d60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 9 deletions

View file

@ -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

View file

@ -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