[Rt-commit] rtir branch, 4.0/failing-reject-test, created. 4.0.0-49-g5891d14

Shawn Moore shawn at bestpractical.com
Fri Jun 30 17:44:39 EDT 2017

The branch, 4.0/failing-reject-test has been created
        at  5891d14c795798a920626ce6c95ef5bc7c3bb02a (commit)

- Log -----------------------------------------------------------------
commit 5891d14c795798a920626ce6c95ef5bc7c3bb02a
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Fri Jun 30 21:42:52 2017 +0000

    Avoid test failure with 4.4.2's new Reports menu
    Previously, when this test clicked the "Reports" menu it expected to
    land on a list of Incident Reports. Now, when it clicks the menu labeled
    "Reports" it ends up with a list of possible charts.
    follow_link_ok supports multiple parameters to better narrow down which
    link you intended to follow, so also specify the url must match /RTIR/
    Fixes: T#187988

diff --git a/t/002-test-reject.t b/t/002-test-reject.t
index eb7cd4d..7fc0e93 100644
--- a/t/002-test-reject.t
+++ b/t/002-test-reject.t
@@ -141,7 +141,7 @@ diag "test that after bulk reject links to incidents are still there" if $ENV{'T
     $agent->display_ticket( $id);
-    $agent->follow_link_ok({text => "Reports"}, "Followed 'Incident Reports' link");
+    $agent->follow_link_ok({text => "Reports", url_regex => qr/RTIR/}, "Followed 'Incident Reports' link");
     while($agent->content() !~ m{Display.html\?id=$id">$id</a>}) {
         last unless $agent->follow_link(text => 'Next');


More information about the rt-commit mailing list