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