[Rt-commit] [rtir] 06/08: We're no longer testing a link from the IR to Article Creation

Kevin Falcone falcone at bestpractical.com
Mon Aug 18 12:26:08 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch 3.2/clean-up-articles-code
in repository rtir.

commit 61683a91284d5d03c7a136fce3d6feb3a64c7885
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Aug 15 22:24:23 2014 -0400

    We're no longer testing a link from the IR to Article Creation
    
    Use the first article create, create the IR, make sure the box shows up.
    We should test Extract Article, but that's really mocking core, while
    this tests that the box shows up for RTIR.
---
 t/rtfm/basics.t | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/t/rtfm/basics.t b/t/rtfm/basics.t
index 5664593..e4218b0 100644
--- a/t/rtfm/basics.t
+++ b/t/rtfm/basics.t
@@ -17,7 +17,7 @@ $agent->title_like(qr/^Search for articles$/);
 
 $agent->back();
 
-$agent->follow_link_ok({text => "Create", url_regex => qr/Articles/, n => 2}, "followed new article link");
+$agent->follow_link_ok({text => "Create", url_regex => qr/Articles/, n => 1}, "followed new article link");
 
 $agent->follow_link_ok({text => "in class Templates"}, "chose a class");
 
@@ -27,11 +27,12 @@ my $article_name = "some article".rand();
 
 $agent->field(Name => $article_name);
 $agent->field(Summary => "this is a summary");
+$agent->field('RefersTo-new' => "t:$ir_id");
 $agent->submit();
 
 is($agent->status, 200, "attempt to create succeeded");
 
-$agent->content_like(qr/Incident Report #\d+: looking for articles/, "back on IR page");
+$agent->display_ticket( $ir_id);
 
 $agent->follow_link_ok({text => $article_name}, "back to article");
 $agent->content_like( qr/this is a summary/, "found the summary of the article");

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list