mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
parent
3704345d02
commit
efaac16cee
10 changed files with 25 additions and 8 deletions
1
test/fixtures/invoices.yml
vendored
1
test/fixtures/invoices.yml
vendored
|
@ -1,7 +1,6 @@
|
|||
DEFAULTS: &DEFAULTS
|
||||
created_at: <%= Date.parse '2010-07-05' %>
|
||||
due_date: <%= Date.parse '2010-07-06' %>
|
||||
invoice_type: DEB
|
||||
currency: EUR
|
||||
seller_name: John Doe
|
||||
seller_iban: 1234
|
||||
|
|
16
test/integration/registrar/billing/balance_top_up_test.rb
Normal file
16
test/integration/registrar/billing/balance_top_up_test.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
require 'test_helper'
|
||||
|
||||
class BalanceTopUpTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
login_as users(:api_bestnames)
|
||||
end
|
||||
|
||||
def test_registrar_balance_top_up
|
||||
visit registrar_invoices_url
|
||||
click_link_or_button 'Add deposit'
|
||||
fill_in 'Amount', with: 100
|
||||
click_link_or_button 'Add'
|
||||
|
||||
assert_text 'Please pay the following invoice'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue