mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Add mail notification on soft force delete
This commit is contained in:
parent
9916ca52cb
commit
c252d801f9
10 changed files with 97 additions and 34 deletions
|
@ -201,6 +201,7 @@ class NewDomainForceDeleteTest < ActiveSupport::TestCase
|
|||
asserted_status = DomainStatus::CLIENT_HOLD
|
||||
@domain.update_columns(valid_to: Time.zone.parse('2010-10-05'),
|
||||
force_delete_date: nil)
|
||||
@domain.update(template_name: 'legal_person')
|
||||
|
||||
travel_to Time.zone.parse('2010-07-05')
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ class AdminAreaDomainForceDeleteTest < ApplicationSystemTestCase
|
|||
def test_notifies_registrant_and_admin_contacts_by_email_by_default
|
||||
assert_emails 1 do
|
||||
visit edit_admin_domain_url(@domain)
|
||||
find(:css, '#soft_delete').set(false)
|
||||
click_link_or_button 'Force delete domain'
|
||||
end
|
||||
end
|
||||
|
@ -62,4 +63,4 @@ class AdminAreaDomainForceDeleteTest < ApplicationSystemTestCase
|
|||
assert_no_button 'Schedule force delete'
|
||||
assert_no_link 'Schedule force delete'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue