[Rt-commit] rt branch, 4.6/test-web-ticket-status-regex, created. rt-4.4.4-371-gded331a91
Blaine Motsinger
blaine at bestpractical.com
Fri Sep 6 13:07:29 EDT 2019
The branch, 4.6/test-web-ticket-status-regex has been created
at ded331a91afb3ee12257fcb630c457cf93b5feed (commit)
- Log -----------------------------------------------------------------
commit ded331a91afb3ee12257fcb630c457cf93b5feed
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..202203b1a 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]+?)\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