mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Update test
This commit is contained in:
parent
3ca34fe100
commit
716bd57e4f
1 changed files with 3 additions and 1 deletions
|
@ -9,13 +9,15 @@ class NewRegistrarTest < ActionDispatch::IntegrationTest
|
||||||
visit admin_registrars_path
|
visit admin_registrars_path
|
||||||
click_link_or_button 'New registrar'
|
click_link_or_button 'New registrar'
|
||||||
|
|
||||||
fill_in 'registrar[name]', with: 'test'
|
fill_in 'registrar[name]', with: 'John Doe'
|
||||||
fill_in 'registrar[reg_no]', with: '1234567'
|
fill_in 'registrar[reg_no]', with: '1234567'
|
||||||
fill_in 'registrar[email]', with: 'test@test.com'
|
fill_in 'registrar[email]', with: 'test@test.com'
|
||||||
fill_in 'registrar[code]', with: 'test'
|
fill_in 'registrar[code]', with: 'test'
|
||||||
fill_in 'registrar[accounting_customer_code]', with: 'test'
|
fill_in 'registrar[accounting_customer_code]', with: 'test'
|
||||||
click_link_or_button 'Create registrar'
|
click_link_or_button 'Create registrar'
|
||||||
|
|
||||||
|
assert_current_path admin_registrar_path(Registrar.last)
|
||||||
assert_text 'Registrar has been successfully created'
|
assert_text 'Registrar has been successfully created'
|
||||||
|
assert_text 'John Doe'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue