mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
parent
490528ca18
commit
e60380c60a
9 changed files with 103 additions and 30 deletions
|
@ -1,11 +1,8 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrarDomainsTest < ActionDispatch::IntegrationTest
|
||||
def setup
|
||||
login_as users(:api_bestnames)
|
||||
end
|
||||
|
||||
def test_downloads_domain_list_as_csv
|
||||
login_as users(:api_bestnames)
|
||||
travel_to Time.zone.parse('2010-07-05 10:30')
|
||||
|
||||
expected_csv = <<-CSV.strip_heredoc
|
||||
|
@ -20,22 +17,4 @@ class RegistrarDomainsTest < ActionDispatch::IntegrationTest
|
|||
assert_equal 'attachment; filename="Domains_2010-07-05_10.30.csv"', response_headers['Content-Disposition']
|
||||
assert_equal expected_csv, page.body
|
||||
end
|
||||
|
||||
def test_transfers_domain
|
||||
travel_to Time.zone.parse('2010-07-05 10:30:00')
|
||||
|
||||
visit registrar_domains_url
|
||||
click_link 'Transfer'
|
||||
fill_in 'Domain name', with: 'shop.test'
|
||||
fill_in 'Transfer code', with: '65078d5'
|
||||
click_button 'Transfer'
|
||||
|
||||
assert_text 'Transfer requested at: 2010-07-05 10:30:00'
|
||||
end
|
||||
|
||||
def test_prefills_domain_transfer_form
|
||||
visit info_registrar_domains_url(domain_name: 'airport.test')
|
||||
click_link 'Transfer'
|
||||
assert_field 'domain_name', with: 'airport.test'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue