Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0/add create tickets template gui #375

Closed
wants to merge 11 commits into from
Prev Previous commit
Update tests
  • Loading branch information
bkembreeBPS committed Dec 18, 2023
commit fa151dfb220841977eacf57258c6e5ac9550f82e
1 change: 1 addition & 0 deletions t/web/html_template.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ my $content = Encode::decode("UTF-8", "测试");
{
$m->follow_link_ok( { id => 'admin-global-templates' }, '-> Templates' );
$m->follow_link_ok( { text => 'Autoreply in HTML' }, '-> Autoreply in HTML' );
$m->follow_link_ok( { text => 'Content' }, '-> Content' );

$m->submit_form(
form_name => 'ModifyTemplate',
Expand Down
4 changes: 3 additions & 1 deletion t/web/template.t
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ $m->form_name('ModifyTemplate');
is($m->value('Type'), 'Perl', 'now that we have ExecuteCode we can update Type to Perl');

{ # 21152: Each time you save a Template a newline is chopped off the front
# go to Content tab
$m->follow_link( text => 'Content' );

$m->form_name('ModifyTemplate');
my $content;


TODO: {

local $TODO = "WWW::Mechanize doesn't strip newline following <textarea> tag like browsers do";
Expand Down
Loading