[Rt-commit] rtir branch, 4.0-trunk, updated. 4.0.0-29-ge22fb11

Shawn Moore shawn at bestpractical.com
Wed Jan 25 15:19:38 EST 2017


The branch, 4.0-trunk has been updated
       via  e22fb111fb6972c245233f4f4f598e7a5fb9b0b3 (commit)
      from  afa26b65a45144787a8a2860955882da4a3f9d51 (commit)

Summary of changes:
 t/searches/cf.t     | 4 ++--
 t/searches/simple.t | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit e22fb111fb6972c245233f4f4f598e7a5fb9b0b3
Author: Shawn M Moore <shawn at bestpractical.com>
Date:   Wed Jan 25 20:18:21 2017 +0000

    Fix failing tests introduced in 0cf4d26ab
    
    See RT's 0ce4d256d5e05a88121e9e5a91a27f07bbdd8d5c for explanation

diff --git a/t/searches/cf.t b/t/searches/cf.t
index 9975454..34feda4 100644
--- a/t/searches/cf.t
+++ b/t/searches/cf.t
@@ -24,10 +24,10 @@ $m->submit_form(
     button    => 'DoSearch',
 );
 
-$m->content_contains( 'Spam Incident', 'has spam incident' );
+like($m->dom->at('table.ticket-list')->all_text, qr/Spam Incident/, 'has spam incident' );
 # failure mode is that the CF isn't added and so we find all incidents
 # we should only be finding Queue = 'Incidents' and CF.Classification = 'Spam'
-$m->content_lacks( 'Ham Incident', 'has not found the ham incident' );
+unlike($m->dom->at('table.ticket-list')->all_text, qr/Ham Incident/, 'has not found the ham incident' );
 
 undef $m;
 done_testing;
diff --git a/t/searches/simple.t b/t/searches/simple.t
index 8aca638..f6d8319 100644
--- a/t/searches/simple.t
+++ b/t/searches/simple.t
@@ -19,11 +19,11 @@ my $agent = default_agent();
         $ir_id, { Subject => 'test inc' },
     );
     $agent->get_ok( '/RTIR/index.html?q=test%40example.com' );
-    $agent->content_like(qr{test inc});
-    $agent->content_unlike(qr{test ir});
+    like($agent->dom->at('table.ticket-list')->all_text, qr{test inc});
+    unlike($agent->dom->at('table.ticket-list')->all_text, qr{test ir});
 
     $agent->get_ok( '/RTIR/index.html?q=192.168.1.1' );
-    $agent->content_like(qr{test ir});
+    like($agent->dom->at('table.ticket-list')->all_text, qr{test ir});
 
     $agent->get_ok( "/RTIR/index.html?q=$inc_id" );
     is($agent->uri,$agent->rt_base_url."RTIR/Incident/Display.html?id=$inc_id","Directed to the Incident Page");

-----------------------------------------------------------------------


More information about the rt-commit mailing list