[Rt-commit] [rtir] 14/19: Fix tests now that we no longer hide part of the query from users

Jesse Vincent jesse at bestpractical.com
Wed Mar 25 00:20:58 EDT 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 67d09460da0369d61d78254dddd6d6d75f5b8276
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Tue Mar 24 20:10:20 2015 -0700

    Fix tests now that we no longer hide part of the query from users
---
 t/searches/menu.t | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/t/searches/menu.t b/t/searches/menu.t
index 6ff2448..9a21bf9 100644
--- a/t/searches/menu.t
+++ b/t/searches/menu.t
@@ -76,11 +76,10 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
         ok( $m->find_link( url_regex => qr{/RTIR/Incident/Display.html\?id=$incident_id$} ),
             "found link to incident $incident_id" );
     }
-
     $m->follow_link_ok( { text => "Edit Search", n => 2 } );
     $m->form_name('BuildQuery');
     my ($input_query) = $m->find_all_inputs( name => 'Query' );
-    is( $input_query->value, q{( Lifecycle = 'incidents' ) AND Status = 'open'}, 'Query input is correct' );
+    is( $input_query->value, q{( Lifecycle = 'incidents' ) AND Status = 'open' AND HasMember != 2}, 'Query input is correct' );
 
     $m->submit_form_ok(
         {
@@ -117,7 +116,7 @@ for my $type ( 'incident', 'ir', 'investigation', 'block' ) {
     my ($input_query) = $m->find_all_inputs( name => 'Query' );
     is(
         $input_query->value,
-        q{( Lifecycle = 'incident_reports' ) AND (  Status = 'new' OR Status = 'open' )},
+        q{( Lifecycle = 'incident_reports' ) AND (  Status = 'new' OR Status = 'open' ) AND MemberOf != 1},
         'Query input is correct'
     );
 

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


More information about the rt-commit mailing list