I would like to use page.should have_no_content to check if the page doesn't display the label to user, here what it is in HTML:
<li id="account_input" style="display: none;">
<label for="account_name">My Account</label>
...
</li>
So when I use page.should have_no_content("My Account"), it returns false instead of true.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…