mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 13:36:15 +02:00
Updated admin integration test
This commit is contained in:
parent
c5dc81ede9
commit
f5ed46c9a3
1 changed files with 8 additions and 1 deletions
|
@ -41,12 +41,19 @@ class AdminAreaWhiteIpsIntegrationTest < JavaScriptApplicationSystemTestCase
|
|||
end
|
||||
|
||||
def test_update_whitelisted_ip
|
||||
@white_ip.update!(committed: false)
|
||||
visit_info_whitelisted_ip_page
|
||||
click_on 'Edit'
|
||||
|
||||
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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue