[Rt-commit] rtir branch, 4.0.1-releng, updated. 4.0.0-45-g0d8bdea

Shawn Moore shawn at bestpractical.com
Tue Jul 11 16:27:45 EDT 2017


The branch, 4.0.1-releng has been updated
       via  0d8bdeafd35521fd6be433247247d06ecd9d5674 (commit)
      from  3bcbdbebb9487dfbc4a3082ae3cea300d07d935d (commit)

Summary of changes:
 t/002-test-reject.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit 0d8bdeafd35521fd6be433247247d06ecd9d5674
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