mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 23:42:04 +02:00
fixed bag, added test
This commit is contained in:
parent
3fb1ccb41f
commit
3d9a763f32
3 changed files with 29 additions and 16 deletions
20
test/system/registrar_area/domain/domain_test.rb
Normal file
20
test/system/registrar_area/domain/domain_test.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
require 'application_system_test_case'
|
||||
|
||||
class Domainest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@user = users(:api_bestnames)
|
||||
@contact = contacts(:jack)
|
||||
|
||||
@domain = domains(:shop)
|
||||
|
||||
sign_in @user
|
||||
end
|
||||
|
||||
def test_update_tech_contact
|
||||
visit edit_registrar_domains_path + "?domain_name=#{@domain.name}"
|
||||
fill_in 'domain_contacts_attributes_0_code_helper', with: "#{@contact.code} #{@contact.name}"
|
||||
click_on 'Save'
|
||||
|
||||
assert_redirect_to info_registrar_domains_url(domain_name: @domain_params[:name])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue