[Rt-commit] rt branch, reminders-fixes, updated. rt-3.9.7-1079-gcc1486b

Shawn Moore sartak at bestpractical.com
Mon Dec 27 21:10:28 EST 2010


The branch, reminders-fixes has been updated
       via  cc1486bd4711c160e484a3569b748ac2533c3f10 (commit)
      from  24a1cc4a6ccc40bbd9d0348025c90a633abbd718 (commit)

Summary of changes:
 t/web/reminders.t |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit cc1486bd4711c160e484a3569b748ac2533c3f10
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Dec 27 21:10:03 2010 -0500

    Ensure we have no titlebar on /Ticket/Reminders.html without reminders

diff --git a/t/web/reminders.t b/t/web/reminders.t
index b64b4fe..34c9b63 100644
--- a/t/web/reminders.t
+++ b/t/web/reminders.t
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use RT::Test tests => 29;
+use RT::Test tests => 34;
 
 my ($baseurl, $m) = RT::Test->started_ok;
 
@@ -17,9 +17,19 @@ $m->text_contains('New reminder:', 'can create a new reminder');
 $m->content_unlike(qr{Check box to complete}, "we don't display this text when there are no reminders");
 TODO: {
     local $TODO = "we display the reminder titlebar even though we have no reminders";
-    $m->content_unlike(qr{<th[^>]*>Reminder</th>}, "no reminder titlebar");
+    $m->content_unlike(qr{<th[^>]*>Reminders?</th>}, "no reminder titlebar");
 }
 
+$m->follow_link_ok({id => 'page-reminders'});
+$m->title_is("Reminders for ticket #" . $ticket->id);
+$m->text_contains('New reminder:', 'can create a new reminder');
+$m->content_unlike(qr{Check box to complete}, "we don't display this text when there are no reminders");
+TODO: {
+    local $TODO = "we display the reminder titlebar even though we have no reminders";
+    $m->content_unlike(qr{<th[^>]*>Reminders?</th>}, "no reminder titlebar");
+}
+
+$m->goto_ticket($ticket->id);
 $m->form_name('UpdateReminders');
 $m->field( 'NewReminder-Subject' => "baby's first reminder" );
 $m->submit;
@@ -35,7 +45,7 @@ is($reminder->Status, 'new');
 
 $m->text_contains('New reminder:', 'can create a new reminder');
 $m->text_contains('Check box to complete', "we DO display this text when there are reminders");
-$m->content_like(qr{<th[^>]*>Reminder</th>}, "now we have a reminder titlebar");
+$m->content_like(qr{<th[^>]*>Reminders?</th>}, "now we have a reminder titlebar");
 $m->text_contains("baby's first reminder", "display the reminder's subject");
 
 $m->follow_link_ok({id => 'page-reminders'});
@@ -65,7 +75,7 @@ $m->text_contains('New reminder:', 'can create a new reminder');
 $m->content_unlike(qr{Check box to complete}, "we don't display this text when there are open reminders");
 TODO: {
     local $TODO = "we display the reminder titlebar even though we have no open reminders";
-    $m->content_unlike(qr{<th[^>]*>Reminder</th>}, "no reminder titlebar");
+    $m->content_unlike(qr{<th[^>]*>Reminders?</th>}, "no reminder titlebar");
 }
 $m->content_unlike(qr{baby's first reminder}, "we don't display resolved reminders");
 

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


More information about the Rt-commit mailing list