mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 03:06:14 +02:00
Disputes: Show when and who closed dispute
This commit is contained in:
parent
26a5813fe9
commit
c682155bf6
9 changed files with 48 additions and 31 deletions
6
test/fixtures/disputes.yml
vendored
6
test/fixtures/disputes.yml
vendored
|
@ -3,22 +3,20 @@ active:
|
|||
password: active-001
|
||||
starts_at: <%= Date.parse '2010-07-05' %>
|
||||
expires_at: <%= Date.parse '2013-07-05' %>
|
||||
closed: false
|
||||
future:
|
||||
domain_name: future-dispute.test
|
||||
password: active-001
|
||||
starts_at: <%= Date.parse '2010-10-05' %>
|
||||
expires_at: <%= Date.parse '2013-10-05' %>
|
||||
closed: false
|
||||
expired:
|
||||
domain_name: expired-dispute.test
|
||||
password: active-001
|
||||
starts_at: <%= Date.parse '2010-07-05' %>
|
||||
expires_at: <%= Date.parse '2013-07-05' %>
|
||||
closed: true
|
||||
closed: <%= Date.parse '2013-07-05' %>
|
||||
closed:
|
||||
domain_name: closed_dispute.test
|
||||
password: active-001
|
||||
starts_at: <%= Date.parse '2010-07-05' %>
|
||||
expires_at: <%= Date.parse '2013-07-05' %>
|
||||
closed: true
|
||||
closed: <%= Date.parse '2013-07-05' %>
|
||||
|
|
|
@ -18,7 +18,7 @@ class AdminDisputesSystemTest < ApplicationSystemTestCase
|
|||
assert_nil Dispute.active.find_by(domain_name: 'disputed.test')
|
||||
|
||||
visit admin_disputes_path
|
||||
click_on 'New domain dispute'
|
||||
click_on 'New disputed domain'
|
||||
|
||||
fill_in 'Domain name', with: 'disputed.test'
|
||||
fill_in 'Password', with: '1234'
|
||||
|
@ -34,7 +34,7 @@ class AdminDisputesSystemTest < ApplicationSystemTestCase
|
|||
assert_nil Dispute.active.find_by(domain_name: 'disputed.test')
|
||||
|
||||
visit admin_disputes_path
|
||||
click_on 'New domain dispute'
|
||||
click_on 'New disputed domain'
|
||||
|
||||
fill_in 'Domain name', with: 'disputed.test'
|
||||
fill_in 'Password', with: '1234'
|
||||
|
@ -65,7 +65,7 @@ class AdminDisputesSystemTest < ApplicationSystemTestCase
|
|||
|
||||
def test_can_not_create_overlapping_dispute
|
||||
visit admin_disputes_path
|
||||
click_on 'New domain dispute'
|
||||
click_on 'New disputed domain'
|
||||
|
||||
fill_in 'Domain name', with: 'active-dispute.test'
|
||||
fill_in 'Starts at', with: @dispute.starts_at + 1.day
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue