X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fticket_modify_people.t;h=cefbf915bdd7f46fe4b75ad6c30bff255c08d02c;hb=681a340f6be4184b1472a8e1fa9cd5d074f6f325;hp=750be3f2c5030805f34b5a89b03da79f07e94cd0;hpb=85e677b86fc37c54e6de2b06340351a28f5a5916;p=freeside.git diff --git a/rt/t/web/ticket_modify_people.t b/rt/t/web/ticket_modify_people.t index 750be3f2c..cefbf915b 100644 --- a/rt/t/web/ticket_modify_people.t +++ b/rt/t/web/ticket_modify_people.t @@ -1,7 +1,7 @@ use strict; use warnings; -use RT::Test tests => 23; +use RT::Test tests => 25; my $root = RT::Test->load_or_create_user( Name => 'root' ); my $group_foo = RT::Group->new($RT::SystemUser); @@ -80,7 +80,7 @@ ok( $m->reload; ok( $m->find_link( - text => 'Enoch Root', + text => 'root (Enoch Root)', url_regex => qr!/Admin/Users/Modify\.html!, ), 'got link to modify user' @@ -108,6 +108,16 @@ ok( 'got link to modify group' ); +$m->submit_form_ok({ + with_fields => { + WatcherTypeEmail1 => 'Cc', + WatcherAddressEmail1 => '"Foo Bar" ', + }, + button => 'SubmitTicket', +}, "Added email with phrase as watcher"); + +my $foo = RT::Test->load_or_create_user( EmailAddress => 'foo@example.com' ); +is $foo->RealName, "Foo Bar", "RealName matches"; # TODO test Add|Delete people