[Rt-commit] r16231 - in rt/branches/3.999-DANGEROUS: t/web
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Oct 6 23:53:20 EDT 2008
Author: sunnavy
Date: Mon Oct 6 23:53:20 2008
New Revision: 16231
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/t/web/ticket_owner.t
Log:
r17042 at sunnavys-mb: sunnavy | 2008-10-07 11:52:45 +0800
owner field is rendered as action now, update test
Modified: rt/branches/3.999-DANGEROUS/t/web/ticket_owner.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/web/ticket_owner.t (original)
+++ rt/branches/3.999-DANGEROUS/t/web/ticket_owner.t Mon Oct 6 23:53:20 2008
@@ -3,7 +3,7 @@
use strict;
use warnings;
-use RT::Test; use Test::More tests => 91;
+use RT::Test; use Test::More tests => 93;
my $queue = RT::Test->load_or_create_queue( name => 'Regression' );
@@ -99,8 +99,13 @@
diag("Going to ticket $id");
$agent->follow_link_ok(text => 'Basics');
my $form = $agent->form_number(3);
- is $form->value('owner'), $user_b->id, 'correct owner selected';
- $agent->select('owner', RT->nobody->id);
+ is $agent->action_field_value(
+ $agent->moniker_for('RT::Action::UpdateTicket'), 'owner'
+ ),
+ $user_b->id, 'correct owner selected';
+ $agent->fill_in_action_ok(
+ $agent->moniker_for("RT::Action::UpdateTicket"),
+ owner => RT->nobody->id );
$agent->submit;
$agent->content_like(
More information about the Rt-commit
mailing list