4 use RT::Test tests => 8;
7 my ( $url, $m ) = RT::Test->started_ok;
8 $m->default_header( 'Accept-Language' => "zh-tw" );
9 ok( $m->login, 'logged in' );
18 ===Create-Ticket: ticket1
30 $m->get_ok( $url . '/Tools/Offline.html' );
33 form_name => 'TicketUpdate',
34 fields => { string => $template, },
35 button => 'UpdateTickets',
37 my $content = Encode::encode("UTF-8", $m->content);
38 ok( $content =~ m/申請單 #(\d+) 成功新增於 'General' 表單/, 'message is shown right' );
47 Subject: test message update
50 $m->get_ok( $url . '/Tools/Offline.html' );
52 form_name => 'TicketUpdate',
53 fields => { string => $template, },
54 button => 'UpdateTickets',
57 my $content = Encode::encode("UTF-8", $m->content);
60 qr/主題\s*的值從\s*'test message'\s*改為\s*'test message update'/,