mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Modified capybara fill_in method
This commit is contained in:
parent
5cb6b0ae1e
commit
b15e250454
1 changed files with 5 additions and 5 deletions
|
@ -11,10 +11,10 @@ class RegistrarAreaContactTest < ApplicationSystemTestCase
|
||||||
visit registrar_contacts_path
|
visit registrar_contacts_path
|
||||||
click_on 'New'
|
click_on 'New'
|
||||||
|
|
||||||
fill_in 'Ident', with: @contact.ident
|
fill_in 'depp_contact_ident', with: @contact.ident
|
||||||
fill_in 'Name', with: @contact.name
|
fill_in 'depp_contact_name', with: @contact.name
|
||||||
fill_in 'E-mail', with: @contact.email
|
fill_in 'depp_contact_email', with: @contact.email
|
||||||
fill_in 'Phone', with: '372'
|
fill_in 'depp_contact_phone', with: '372'
|
||||||
click_on 'Create'
|
click_on 'Create'
|
||||||
|
|
||||||
assert_text 'Phone number must be in +XXX.YYYYYYY format'
|
assert_text 'Phone number must be in +XXX.YYYYYYY format'
|
||||||
|
@ -37,7 +37,7 @@ class RegistrarAreaContactTest < ApplicationSystemTestCase
|
||||||
|
|
||||||
assert_text "Edit: #{depp_contact.name}"
|
assert_text "Edit: #{depp_contact.name}"
|
||||||
|
|
||||||
fill_in 'Phone', with: '372'
|
fill_in 'depp_contact_phone', with: '372'
|
||||||
click_on 'Save'
|
click_on 'Save'
|
||||||
|
|
||||||
assert_text 'Phone number must be in +XXX.YYYYYYY format'
|
assert_text 'Phone number must be in +XXX.YYYYYYY format'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue