[Rt-commit] [rtir] 01/01: Update tests to handle changed Launch link.

Jim Brandt jbrandt at bestpractical.com
Fri Apr 26 16:40:06 EDT 2013


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

jbrandt pushed a commit to branch 2.9/make-investigations-menu-launch
in repository rtir.

commit f0f6d12cf058d3bba2fc9ee988113ce570881b7e
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Apr 26 16:39:47 2013 -0400

    Update tests to handle changed Launch link.
---
 lib/RT/IR/Test/Web.pm | 4 +++-
 t/incident/split.t    | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/RT/IR/Test/Web.pm b/lib/RT/IR/Test/Web.pm
index 2362f85..0f84343 100644
--- a/lib/RT/IR/Test/Web.pm
+++ b/lib/RT/IR/Test/Web.pm
@@ -31,10 +31,12 @@ sub goto_create_rtir_ticket {
 
     my $equeue = $queue;
     $equeue =~ s/ /%20/;
+    my $link_text = "Create";
+    $link_text = "Launch" if $queue eq 'Investigations';
 
     $self->get_ok("/RTIR/index.html", "Loaded home page");
     $self->follow_link_ok(
-        {text => "Create", url_regex => qr{RTIR/Create\.html.*(?i:$equeue)} },
+        {text => $link_text, url_regex => qr{RTIR/Create\.html.*(?i:$equeue)} },
         "Followed create in '$queue' link"
     );
 
diff --git a/t/incident/split.t b/t/incident/split.t
index b756f21..091d38f 100644
--- a/t/incident/split.t
+++ b/t/incident/split.t
@@ -25,7 +25,7 @@ my $rtir_user = rtir_user();
     my $new_id = ($agent->content =~ /.*Ticket (\d+) created.*/i )[0];
     ok ($new_id, "Ticket created successfully: #$new_id.");
 
-    $agent->follow_link_ok({text => "Launch"}, "Followed link");
+    $agent->follow_link_ok({text => "Launch", n => 2 }, "Followed link");
     $agent->form_number(3);
     $agent->field('Requestors', $rtir_user->EmailAddress);
     $agent->click('Create');

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


More information about the Rt-commit mailing list