The new version of Spreewald Show archive.org snapshot makes it easier to inspect form values.
Then the "foo" field should contain "bar"
is applied to a <select>
, it now tests against option labels, not option values.Then "bar" should be selected for "foo"
.Then the "foo" field should contain "bar"
is applied to a <select>
for all types of input controls.<select>
and none of its options is selected, we assume the value to be the value of the first option.Then the "foo" field should contain "bar"
and Then "bar" should be selected for "foo"
.You can now say:
Then I should see a form with the following values:
| E-mail | foo@bar.com |
| Role | Administrator |
| Full name | Foo Bar |
The step does not yet handle check boxes and radio buttons.
Just a reminder that we recently added Cucumber features to test Spreewald steps. They're really easy to use! Please add your own tests for steps you add or change.