[Jifty-commit] r5308 - jifty/branches/jquery/t/TestApp-JiftyJS/t

Jifty commits jifty-commit at lists.jifty.org
Tue Apr 15 13:31:23 EDT 2008


Author: gugod
Date: Tue Apr 15 13:31:22 2008
New Revision: 5308

Modified:
   jifty/branches/jquery/t/TestApp-JiftyJS/t/6-offer-actions.t

Log:
Relax the xpath locator a little bit due to the element name change.
It was specified too strict and easily broken.


Modified: jifty/branches/jquery/t/TestApp-JiftyJS/t/6-offer-actions.t
==============================================================================
--- jifty/branches/jquery/t/TestApp-JiftyJS/t/6-offer-actions.t	(original)
+++ jifty/branches/jquery/t/TestApp-JiftyJS/t/6-offer-actions.t	Tue Apr 15 13:31:22 2008
@@ -23,7 +23,9 @@
 my $URL    = $server->started_ok;
 
 $sel->open("/");
+# $sel->set_speed(3000);
 
+my $i = 3;
 for (@commands) {
     my ($cmd, $arg1, $arg2) = (split(/\n\s*/, $_, 3), "", "");
 
@@ -33,6 +35,7 @@
     $arg2 =~ s{\s*$}{};
 
     $cmd .= "_ok";
+    # diag($i++, $cmd, $arg1, $arg2);
     $sel->$cmd($arg1, $arg2);
 
 }
@@ -75,19 +78,22 @@
     Offer A Job
 
 check
-    xpath=//input[starts-with(@id, "J:A:F-is_job-auto-")][@type="checkbox"]
+    xpath=//input[starts-with(@id, "J:A:F-is_job-create")][@type="checkbox"]
 
 
 # Click the "Create" button
 click
-    xpath=//div[@class="submit_button"]/input[@type="submit"][contains(@name,"J:ACTIONS=auto-")]
+    xpath=//div[@class="submit_button"]/input[contains(@name,"create")]
+ 
 
 pause
-    1000
+    100
 
+# 14
 wait_for_element_present
-    xpath=//input[@type="checkbox"][@checked]
+    xpath=//input[@type="checkbox"][@readonly="readonly"][@checked="checked"]
 
+# 15
 get_text
     xpath=//span[contains(@class, "text")][contains(@class, "argument-name")][contains(@class, "value")]
     Offer A Job


More information about the Jifty-commit mailing list