ruby on rails - capybara: page.should have_no_content doesn't work correctly for display:none element -
I would like to use the page. It is to check whether the page does not display the label to the user, here's what it is in HTML:
& lt; Li id = "account_input" style = "display: none;" & Gt; & Lt; Label = "account_name" & gt; My Account & lt; / Label & gt; ... & lt; / Li & gt; So when I use the page.What will happen_no_content ("my account"), it lies instead of truth.
You can use this statement
# Account_input '). Should_not be_visible
Comments
Post a Comment