capybara: page.should have_no_content doesn't work correctly for display:none element

后端 未结 4 2111
你的背包
你的背包 2020-12-16 22:10

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:

  • 4条回答
    •  暗喜
      暗喜 (楼主)
      2020-12-16 22:19

      I found another way to implement should not have

      page.should_not( have_content(arg1))

    提交回复
    热议问题