Cucumber steps to test input fields for equality (with wildcard support)

Updated . Posted . Visible to the public.

Our collection of the most useful Cucumber steps, Spreewald Show archive.org snapshot , now supports exact matching of form fields and lets you use wildcards.

Examples:

And the "Money" field should contain "134"
# -> Only is green if that field contains the exact string "134", neither "134,50" nor "1000134"

And the "Name" field should contain "*Peter*"
# -> Accepts if the field contains "Peter" or "Anton Peter" or "Peter Schödl" etc.

And the "Comment" field should contain "Dear*bye"
# -> Accepts if the field contains "Dearbye" or
"Dear Anton,
I received your letter.
bye"

And the "Greeting" field should contain "*"
# -> matches anything
Profile picture of Henning Koch
Henning Koch
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2010-12-29 16:58)