I am working on a bilingual (Chinese/English) site in Sinatra and using Cucumber to test features as they are implemented.
A key feature for the site is that content should be displayed in English or Chinese when a selector is used. Initially I used a step beginning with "I should see..." however, when I hide content cucumber can still see it, because the content is still in the source, it is just not displayed in the browser. How do I write a step which confirms that content is visible or not visible?
Solved! I didn't have to write a new web step, though I did change the jQuery from