4 use RT::Test tests => 8;
6 my ($baseurl, $m) = RT::Test->started_ok;
7 ok $m->login, 'logged in as root';
9 my $cf_name = 'test render type';
14 $m->follow_link( id => 'tools-config-custom-fields-create');
16 form_name => "ModifyCustomField",
19 TypeComposite => 'Freeform-1',
20 LookupType => 'RT::Queue-RT::Ticket',
23 $m->content_contains('Object created', 'created Freeform-1' );
24 $cfid = $m->form_name('ModifyCustomField')->value('id');
25 ok $cfid, "found id of the CF in the form, it's #$cfid";
28 diag "change to Select type";
31 form_name => "ModifyCustomField",
32 fields => { TypeComposite => 'Select-1', },
36 "Type changed from 'Enter one value' to 'Select one value'",
37 'changed to Select-1' );
40 diag "let's save it again";
43 form_name => "ModifyCustomField",
46 $m->content_lacks( "Render Type changed from '1' to 'Select box'",
47 'no buggy RenderType change msg' );