mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 10:45:58 +02:00
Create test for viewing other domain contacts
This commit is contained in:
parent
d0053def99
commit
bd7b6ddb73
1 changed files with 19 additions and 0 deletions
19
test/integration/registrant_area/contacts_test.rb
Normal file
19
test/integration/registrant_area/contacts_test.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
require 'test_helper'
|
||||
|
||||
class RegistrantAreaContactsIntegrationTest < ApplicationIntegrationTest
|
||||
setup do
|
||||
@domain = domains(:shop)
|
||||
@registrant = users(:registrant)
|
||||
sign_in @registrant
|
||||
end
|
||||
|
||||
def test_can_view_other_domain_contacts
|
||||
secondary_contact = contacts(:jane)
|
||||
|
||||
visit registrant_domain_path(@domain)
|
||||
assert_text secondary_contact.name
|
||||
click_link secondary_contact.name
|
||||
assert_text @domain.name
|
||||
assert_text secondary_contact.email
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue