I would like to use page.should have_no_content to check if the page does not display a shortcut for the user, here is what it is in HTML:
<li id="account_input" style="display: none;"> <label for="account_name">My Account</label> ... </li>
Therefore, when I use page.should have_no_content ("My Account"), it returns false instead of true.
ruby-on-rails integration-testing cucumber capybara
Samnang
source share