Read more

Test that a form field is visible with Cucumber/Capybara

Henning Koch
January 30, 2013Software engineer at makandra GmbH

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
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

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

Posted by Henning Koch to makandra dev (2013-01-30 10:04)