[Rt-commit] rt branch, master, updated. rt-4.4.4-417-g5197cd48d
? sunnavy
sunnavy at bestpractical.com
Tue Oct 15 17:27:48 EDT 2019
The branch, master has been updated
via 5197cd48db81279fbff3eb94fd6ec9303efd7cf4 (commit)
via c9d94fcbb98da0fb5367c56d4ec6fbdc0a140ef7 (commit)
from 04fe76a9657976118955bcf496fe1230c78a50b3 (commit)
Summary of changes:
lib/RT/Test/Web.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit c9d94fcbb98da0fb5367c56d4ec6fbdc0a140ef7
Author: Blaine Motsinger <blaine at bestpractical.com>
Date: Thu Sep 5 19:48:40 2019 -0500
Update ticket status test regex for elevator themes
Also simplify the regex a bit as non-greedy "[^>]*?>" works like ".*?>"
diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 2b0d33ce0..2faecf20a 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -303,7 +303,7 @@ sub ticket_status {
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.*?>\s*<span.*?>\s*([\w ]+?)\s*</span>}ism);
unless ( $got ) {
Test::More::diag("Error: couldn't find status value on the page, may be regexp problem");
}
commit 5197cd48db81279fbff3eb94fd6ec9303efd7cf4
Merge: 04fe76a96 c9d94fcbb
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Oct 16 05:22:35 2019 +0800
Merge branch '4.6/elevator-test-web-regex'
-----------------------------------------------------------------------
More information about the rt-commit
mailing list