summaryrefslogtreecommitdiff
path: root/rt/t/web/basic.t
diff options
context:
space:
mode:
authorivan <ivan>2011-02-17 00:25:23 +0000
committerivan <ivan>2011-02-17 00:25:23 +0000
commit0fb307c305e4bc2c9c27dc25a3308beae3a4d33c (patch)
tree9d527e17db4b4d875f63f019dcd513762bb938a6 /rt/t/web/basic.t
parent6a79fae0c14b6635c67b4f224ee4a14f263b37d0 (diff)
parentfc6209f398899f0211cfcedeb81a3cd65e04a941 (diff)
This commit was generated by cvs2svn to compensate for changes in r10640,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/t/web/basic.t')
-rw-r--r--rt/t/web/basic.t11
1 files changed, 2 insertions, 9 deletions
diff --git a/rt/t/web/basic.t b/rt/t/web/basic.t
index bc4d65587..3f94e732f 100644
--- a/rt/t/web/basic.t
+++ b/rt/t/web/basic.t
@@ -4,7 +4,7 @@ use strict;
use warnings;
use Encode;
-use RT::Test tests => 24;
+use RT::Test tests => 21;
$RT::Test::SKIP_REQUEST_WORK_AROUND = 1;
my ($baseurl, $agent) = RT::Test->started_ok;
@@ -20,15 +20,8 @@ diag $url if $ENV{TEST_VERBOSE};
# test a login
{
- ok($agent->{form}->find_input('user'));
- ok($agent->{form}->find_input('pass'));
-
- ok($agent->{'content'} =~ /username:/i);
- $agent->field( 'user' => 'root' );
- $agent->field( 'pass' => 'password' );
-
+ $agent->login('root' => 'password');
# the field isn't named, so we have to click link 0
- $agent->click(0);
is( $agent->{'status'}, 200, "Fetched the page ok");
ok( $agent->{'content'} =~ /Logout/i, "Found a logout link");
}