Read more

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

Henning Koch
December 29, 2010Software engineer at makandra GmbH

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.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

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
Posted by Henning Koch to makandra dev (2010-12-29 17:58)