[Rt-commit] rt branch, 4.6/test-web-ticket-status-regex, created. rt-4.4.4-371-ga10b16481

Blaine Motsinger blaine at bestpractical.com
Thu Sep 5 20:50:07 EDT 2019


The branch, 4.6/test-web-ticket-status-regex has been created
        at  a10b16481d95e09c03d82035d4245bf6a159f4a4 (commit)

- Log -----------------------------------------------------------------
commit a10b16481d95e09c03d82035d4245bf6a159f4a4
Author: Blaine Motsinger <blaine at bestpractical.com>
Date:   Thu Sep 5 19:48:40 2019 -0500

    Fix ticket status test regex for elevator themes

diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 2b0d33ce0..4bb34683f 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -301,12 +301,13 @@ sub no_leftover_warnings_ok {
 sub ticket_status {
     my $self = shift;
     my $id = shift;
-    
+
     $self->display_ticket( $id);
-    my ($got) = ($self->content =~ m{Status:\s*</td>\s*<td[^>]*?class="value"[^>]*?>\s*([\w ]+?)\s*</td>}ism);
+    my ($got) = ($self->content =~ m{Status:\s*</div>\s*<div[^>]*?class="\w+[^>]*?>\s*<span[^>]*?\s*class="\w+[^>]*?>\s*([\w ]+?)\s*</span>}ism);
     unless ( $got ) {
         Test::More::diag("Error: couldn't find status value on the page, may be regexp problem");
     }
+
     return $got;
 }
 

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


More information about the rt-commit mailing list