mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
16 lines
454 B
Ruby
16 lines
454 B
Ruby
require 'test_helper'
|
|
|
|
class AdminAreaDomainDetailsTest < ActionDispatch::IntegrationTest
|
|
setup do
|
|
sign_in users(:admin)
|
|
@domain = domains(:shop)
|
|
end
|
|
|
|
def test_discarded_domain_has_corresponding_label
|
|
visit admin_domain_url(@domain)
|
|
assert_no_css 'span.label.label-warning', text: 'deleteCandidate'
|
|
@domain.discard
|
|
visit admin_domain_url(@domain)
|
|
assert_css 'span.label.label-warning', text: 'deleteCandidate'
|
|
end
|
|
end
|