diff --git a/test/integration/contact_requests_test.rb b/test/integration/contact_requests_test.rb index 53353f91..e5c63374 100644 --- a/test/integration/contact_requests_test.rb +++ b/test/integration/contact_requests_test.rb @@ -25,11 +25,11 @@ def test_request_replay_fails end end - def test_opening_link_twice_redirects_you_to_root_with_notice_that_this_link_has_been_used + def test_opening_link_twice_does_not_invalidate_link_if_not_used visit(contact_request_path(@valid_contact_request.secret)) visit(contact_request_path(@valid_contact_request.secret)) - assert(page.has_css?('div#flash-alert', text: 'This one-time link has been already used.')) + assert_text('Message is limited to 2000 characters') end def test_request_fails_when_whois_record_was_deleted