mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
26 lines
No EOL
699 B
Ruby
26 lines
No EOL
699 B
Ruby
require 'application_system_test_case'
|
|
|
|
class RegistrarAccountTest < ApplicationSystemTestCase
|
|
setup do
|
|
@registrar = registrars(:bestnames)
|
|
sign_in users(:api_bestnames)
|
|
end
|
|
|
|
def test_updates_account
|
|
new_billing_email = 'new@registrar.test'
|
|
new_iban = 'GB77BARC20201530093459'
|
|
assert_not_equal new_billing_email, @registrar.billing_email
|
|
assert_not_equal new_iban, @registrar.iban
|
|
|
|
visit registrar_account_path
|
|
click_on 'Edit'
|
|
|
|
fill_in 'Billing email', with: new_billing_email
|
|
fill_in 'IBAN', with: new_iban
|
|
click_on 'Save changes'
|
|
|
|
assert_text 'Your account has been updated'
|
|
assert_text new_billing_email
|
|
assert_text new_iban
|
|
end
|
|
end |