mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +02:00
Updated admin integration test
This commit is contained in:
parent
f5ed46c9a3
commit
52405e1796
1 changed files with 0 additions and 14 deletions
|
@ -46,23 +46,9 @@ class AdminAreaWhiteIpsIntegrationTest < JavaScriptApplicationSystemTestCase
|
|||
|
||||
fill_in 'IPv4', with: '127.0.0.2'
|
||||
find(:css, '#white_ip_interfaces_api').set(false)
|
||||
find(:css, '#white_ip_committed').set(false)
|
||||
click_on 'Save'
|
||||
|
||||
assert_text 'Record updated'
|
||||
refute @white_ip.committed
|
||||
|
||||
click_on 'Edit'
|
||||
|
||||
find(:css, '#white_ip_committed').set(true)
|
||||
click_on 'Save'
|
||||
|
||||
assert_text 'Record updated'
|
||||
assert @white_ip.committed
|
||||
|
||||
last_email = ActionMailer::Base.deliveries.last
|
||||
assert last_email.subject.include?('Whitelisted IP Address Activation Confirmation')
|
||||
assert_equal last_email.to, @registrar.email
|
||||
end
|
||||
|
||||
def test_failed_to_update_whitelisted_ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue