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

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -