[Jifty-commit] r7704 - wifty/trunk/t
Jifty commits
jifty-commit at lists.jifty.org
Thu Mar 18 20:39:29 EDT 2010
Author: sunnavy
Date: Thu Mar 18 20:39:28 2010
New Revision: 7704
Modified:
wifty/trunk/t/02-login.t
Log:
update login tests
Modified: wifty/trunk/t/02-login.t
==============================================================================
--- wifty/trunk/t/02-login.t (original)
+++ wifty/trunk/t/02-login.t Thu Mar 18 20:39:28 2010
@@ -22,8 +22,8 @@
my $mech = Jifty::Test::WWW::Mechanize->new();
$mech->get_ok($URL, "Got the homepage");
-ok($mech->find_link(text_regex => qr/Sign in/), 'Got the signin link');
-$mech->follow_link_ok(text_regex => qr/Sign in/);
+ok($mech->find_link(text_regex => qr/Login/), 'Got the login link');
+$mech->follow_link_ok(text_regex => qr/Login/);
sub try_login {
my $mech = shift;
@@ -47,7 +47,7 @@
# With a blank password
try_login($mech, 'someuser at localost', '');
-$mech->content_contains('Please fill in this field','Login fails with no password');
+$mech->content_contains("fill in the 'password' field",'Login fails with no password');
# With the wrong password
try_login($mech, 'someuser at localhost', 'badmemory');
@@ -56,3 +56,4 @@
# Try a correct login
try_login($mech, 'someuser at localhost', 'sekrit');
$mech->content_contains('Welcome back','Logged in');
+
More information about the Jifty-commit
mailing list