[Rt-commit] rt branch, 4.0/self-service-title-fix, created. rt-4.0.0-267-g96998f7

? sunnavy sunnavy at bestpractical.com
Wed May 11 07:57:26 EDT 2011


The branch, 4.0/self-service-title-fix has been created
        at  96998f72a6d47a5dab42dae3c926c362c7773cf3 (commit)

- Log -----------------------------------------------------------------
commit 2d22685da35758bf64cf7bcda957cfc200002625
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed May 11 19:40:28 2011 +0800

    trans %ARGS to /Elements/Header, especially because it contains title info

diff --git a/share/html/SelfService/Elements/Header b/share/html/SelfService/Elements/Header
index b7d5c4c..3e9e820 100755
--- a/share/html/SelfService/Elements/Header
+++ b/share/html/SelfService/Elements/Header
@@ -45,5 +45,5 @@
 %# those contributions and any derivatives thereof.
 %#
 %# END BPS TAGGED BLOCK }}}
-<& /Elements/Header &>
+<& /Elements/Header, %ARGS &>
 <& /Elements/Tabs &>

commit 96998f72a6d47a5dab42dae3c926c362c7773cf3
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed May 11 19:50:45 2011 +0800

    start selfservice test, initially for the title fix

diff --git a/t/web/self_service.t b/t/web/self_service.t
new file mode 100644
index 0000000..acfd498
--- /dev/null
+++ b/t/web/self_service.t
@@ -0,0 +1,19 @@
+use strict;
+use warnings;
+use RT::Test tests => 8;
+
+my ($url, $m) = RT::Test->started_ok;
+
+my ($ticket) =
+  RT::Test->create_ticket( Queue => 'General', Subject => 'test subject' );
+
+$m->login();
+
+$m->get_ok( '/SelfService/Display.html?id=' . $ticket->id,
+    'got selfservice display page' );
+
+my $title = '#' . $ticket->id . ': test subject';
+$m->title_is( $title );
+$m->content_contains( "<h1>$title</h1>", "contains <h1>$title</h1>" );
+
+# TODO need more SelfService tests

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


More information about the Rt-commit mailing list