Test that a form field is visible with Cucumber/Capybara

Spreewald Show archive.org snapshot now comes with a step that tests if a form field is visible:

Then the "Due date" field should be visible
But the "Author" field should not be visible

The step works by looking up the field for the given label, then checks if that field is hidden via CSS (or Javascript).

It is not currently tested if the label is visible or hidden. For this see: Check that an element is visible or hidden via CSS with Cucumber/Capybara

Henning Koch About 11 years ago