Test that a form field is visible with Cucumber/Capybara

Posted . Visible to the public.

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
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Henning Koch to makandra dev (2013-01-30 09:04)