Refactor confirmation url view in registrant area

This commit is contained in:
Artur Beljajev 2019-04-06 19:00:55 +03:00
parent aad39fd2b7
commit 1dfc618228
7 changed files with 32 additions and 20 deletions

View file

@ -62,4 +62,15 @@ class RegistrantAreaDomainDetailsTest < ApplicationSystemTestCase
assert_no_text 'metro.test'
end
end
def test_confirmation_url
@domain.update!(registrant_verification_token: 'a01',
pending_json: { new_registrant_email: 'any' },
statuses: [DomainStatus::PENDING_UPDATE])
visit registrant_domain_url(@domain)
click_on 'pendingUpdate'
assert_field nil, with: registrant_domain_update_confirm_url(@domain, token: 'a01')
end
end