
[PATCH] Error message from FieldLabeledLocator was subpar
Reported by François Beausoleil | May 22nd, 2009 @ 03:57 PM
Grab this commit: http://github.com/francois/webrat/commit/9527e4509f3faba9c1ab7ce6b4...
The patch:
diff --git a/lib/webrat/core/locators/field_labeled_locator.rb b/lib/webrat/core/locators/field_labeled_locator.rb
index 8071be2..a4ef781 100644
--- a/lib/webrat/core/locators/field_labeled_locator.rb
+++ b/lib/webrat/core/locators/field_labeled_locator.rb
@@ -29,7 +29,7 @@ module Webrat
end
def error_message
- "Could not find field labeled #{@value.inspect}"
+ "Could not find field labeled #{@value.inspect}: check that the label's for attribute matches the input/select element's ID"
end
def text(element)
Comments and changes to this ticket
-
gaffo May 28th, 2009 @ 07:17 PM
- State changed from new to awaiting-merge
Looks like a good enhancement.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Ruby Acceptance Testing for Web applications.