Skip to content

Commit

Permalink
Match the newer message we get
Browse files Browse the repository at this point in the history
Improve the debug message from running tests also.
  • Loading branch information
jibsheet committed Mar 25, 2014
1 parent 4f84659 commit 994a257
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xt/rt.t
Expand Up @@ -31,7 +31,7 @@ my $id = create_ticket($agent, 'General', {Subject => $SUBJECT});
ok $id, 'created a ticket';
my $ticket = RT::Ticket->new(RT::SystemUser());
$ticket->Load($id);
ok $ticket->id, 'loaded ticket';
ok $ticket->id, 'loaded ticket '.$id;

$agent->follow_link_ok({text => 'Lock', n => '1'}, "Followed Lock link for Ticket #$id");
$agent->content_like(qr{<div class="locked-by-you">\s*You have locked this ticket\.}ims, "Added a hard lock on Ticket $id");
Expand Down Expand Up @@ -68,8 +68,9 @@ $agent->click('SubmitTicket');
diag("Submitted Comment form") if $ENV{'TEST_VERBOSE'};
$agent->content_like(qr{<div class="locked-by-you">\s*You have had this ticket locked for \d+ \w+\.\s*</div>}ims, "Ticket #$id still locked after submitting comment");


$agent->follow_link_ok({text => 'Unlock', n => '1'}, "Followed Unlock link for Ticket #$id");
$agent->content_like(qr{<div class="locked-by-you">\s*You had this ticket locked for \d+ \w+\. It is now unlocked\.}ims, "Ticket #$id is not locked");
$agent->content_like(qr{You have unlocked this ticket. It was locked for \d+ \w+\.}ims, "Ticket #$id is not locked");

###Testing auto lock###

Expand Down

0 comments on commit 994a257

Please sign in to comment.