Enable to keep a domain

#790
This commit is contained in:
Artur Beljajev 2018-04-08 18:52:32 +03:00
parent 90a4e11ce4
commit cc4a244844
7 changed files with 39 additions and 4 deletions

View file

@ -13,4 +13,14 @@ class AdminAreaDomainDetailsTest < ActionDispatch::IntegrationTest
visit admin_domain_url(@domain)
assert_css 'span.label.label-warning', text: 'deleteCandidate'
end
def test_keep_a_domain
@domain.discard
visit edit_admin_domain_url(@domain)
click_link_or_button 'Remove deleteCandidate status'
@domain.reload
refute @domain.discarded?
assert_text 'deleteCandidate status has been removed'
assert_no_link 'Remove deleteCandidate status'
end
end