mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
Hide method
This commit is contained in:
parent
42e8f86dae
commit
4894b39f0f
8 changed files with 57 additions and 85 deletions
|
@ -13,7 +13,7 @@ class AdminAreaDomainDetailsTest < ApplicationSystemTestCase
|
|||
visit admin_domain_url(@domain)
|
||||
assert_no_css 'span.label.label-warning', text: 'deleteCandidate'
|
||||
|
||||
@domain.discard
|
||||
@domain.update!(statuses: [DomainStatus::DELETE_CANDIDATE])
|
||||
|
||||
visit admin_domain_url(@domain)
|
||||
assert_css 'span.label.label-warning', text: 'deleteCandidate'
|
||||
|
|
|
@ -29,8 +29,7 @@ class AdminDomainsTestTest < ApplicationSystemTestCase
|
|||
end
|
||||
|
||||
def test_keep_a_domain
|
||||
@domain.delete_at = Time.zone.parse('2010-07-05 10:00')
|
||||
@domain.discard
|
||||
@domain.update!(statuses: [DomainStatus::DELETE_CANDIDATE])
|
||||
|
||||
visit edit_admin_domain_url(@domain)
|
||||
click_link_or_button 'Remove deleteCandidate status'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue