mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Add test for clear force delete on registrar change
This commit is contained in:
parent
c252d801f9
commit
e7581246d6
5 changed files with 43 additions and 3 deletions
|
@ -28,7 +28,7 @@ class AdminAreaDomainForceDeleteTest < ApplicationSystemTestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_notifies_registrant_and_admin_contacts_by_email_by_default
|
||||
def test_notifies_registrant_and_admin_contacts_by_email_if_fast_delete
|
||||
assert_emails 1 do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
find(:css, '#soft_delete').set(false)
|
||||
|
@ -36,6 +36,14 @@ class AdminAreaDomainForceDeleteTest < ApplicationSystemTestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_notifies_registrant_and_admin_contacts_by_email_if_soft_delete
|
||||
assert_emails 0 do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
find(:css, '#soft_delete').set(true)
|
||||
click_link_or_button 'Force delete domain'
|
||||
end
|
||||
end
|
||||
|
||||
def test_allows_to_skip_notifying_registrant_and_admin_contacts_by_email
|
||||
assert_no_emails do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue