[Jifty-commit] r2504 - in jifty/trunk: doc
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Jan 15 23:53:29 EST 2007
Author: jesse
Date: Mon Jan 15 23:53:29 2007
New Revision: 2504
Modified:
jifty/trunk/ (props changed)
jifty/trunk/doc/declarative-test-design
Log:
r21003 at hualien: jesse | 2007-01-15 23:52:34 -0500
* a syntax idea for declarative test design
Modified: jifty/trunk/doc/declarative-test-design
==============================================================================
--- jifty/trunk/doc/declarative-test-design (original)
+++ jifty/trunk/doc/declarative-test-design Mon Jan 15 23:53:29 2007
@@ -103,3 +103,26 @@
run_all;
+
+
+# A syntax idea from jesse:
+
+flow "Check to see if the user can login" => test {
+ get '/';
+ element '//body' matches /You're not logged in/;
+
+ follow link 'Login';
+
+ my $login_form = element id 'login-form'
+
+ fill $login_form => {
+ email => 'jesse at fsck.com',
+ password => 'I hate you'
+ }
+
+ click button 'Login!';
+
+}
+
+
+
More information about the Jifty-commit
mailing list