X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fcustom_frontpage.t;h=ee5e9f58a504f46c2e9c5ab0b6d061b51361b494;hb=679854b8bbc65d112071111bbd7f34a6a481fb30;hp=43c5f6e3360b20a38494801a181d185f44ff9c96;hpb=9b328d940af56b9924a342192ebb0790478fa705;p=freeside.git diff --git a/rt/t/web/custom_frontpage.t b/rt/t/web/custom_frontpage.t index 43c5f6e33..ee5e9f58a 100644 --- a/rt/t/web/custom_frontpage.t +++ b/rt/t/web/custom_frontpage.t @@ -1,7 +1,7 @@ -#!/usr/bin/perl -w use strict; +use warnings; -use RT::Test tests => 12; +use RT::Test tests => 19; my ($baseurl, $m) = RT::Test->started_ok; my $url = $m->rt_base_url; @@ -88,3 +88,22 @@ $m->click_button( name => 'add' ); $m->get($url); $m->content_like( qr/special chars \[test\] \d+ \[_1\]/, 'special chars in titlebox' ); + + +# Edit a system saved search to contain "[more]" +{ + my $search = RT::Attribute->new( RT->SystemUser ); + $search->LoadByNameAndObject( Name => 'Search - My Tickets', Object => RT->System ); + my ($id, $desc) = ($search->id, RT->SystemUser->loc($search->Description, '"N"')); + ok $id, 'loaded search attribute'; + + $m->get_ok($url); + $m->follow_link_ok({ url_regex => qr"Prefs/Search\.html\?name=.+?Attribute-$id" }, 'Edit link'); + $m->content_contains($desc, "found description: $desc"); + + ok +($search->SetDescription( $search->Description . " [more]" )); + + $m->get_ok($m->uri); # "reload_ok" + $m->content_contains($desc . " [more]", "found description: $desc"); +} +