[Rt-commit] [rtir] 04/04: Skip a homepage dashboard load for every ticket creation

Jesse Vincent jesse at bestpractical.com
Wed Mar 4 16:13:15 EST 2015


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

jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.

commit bb645df803a7d14eda8c8fdd039c07cfb6d83ba9
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Wed Mar 4 13:12:32 2015 -0800

    Skip a homepage dashboard load for every ticket creation
    
    This cuts RTIR test suite runtime by 15%
---
 lib/RT/IR/Test/Web.pm | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/lib/RT/IR/Test/Web.pm b/lib/RT/IR/Test/Web.pm
index 314657c..9b37598 100644
--- a/lib/RT/IR/Test/Web.pm
+++ b/lib/RT/IR/Test/Web.pm
@@ -77,15 +77,8 @@ sub goto_create_rtir_ticket {
 
     my $lifecycle = lc( $queue);
     $lifecycle =~ s/ /_/;
-    my $link_text = "Create";
-    $link_text = "Launch" if $lifecycle eq RT::IR->lifecycle_investigation;
-
-    $self->get_ok("/RTIR/index.html", "Loaded home page");
-    $self->follow_link_ok(
-        {text => $link_text, url_regex => qr{RTIR/Create\.html.*(?i:$lifecycle)} },
-        "Followed create in '$queue' link"
-    );
-
+   
+    $self->get_ok("/RTIR/Create.html?Lifecycle=$lifecycle");
     # set the form
     return $self->form_number(3);
 }

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


More information about the rt-commit mailing list