Update test

This commit is contained in:
Artur Beljajev 2017-11-23 12:03:31 +02:00
parent 3ca34fe100
commit 716bd57e4f

View file

@ -9,13 +9,15 @@ class NewRegistrarTest < ActionDispatch::IntegrationTest
visit admin_registrars_path
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[email]', with: 'test@test.com'
fill_in 'registrar[code]', with: 'test'
fill_in 'registrar[accounting_customer_code]', with: 'test'
click_link_or_button 'Create registrar'
assert_current_path admin_registrar_path(Registrar.last)
assert_text 'Registrar has been successfully created'
assert_text 'John Doe'
end
end