How do you perform javascript tests with Minitest, Capybara, Selenium?

后端 未结 4 897
没有蜡笔的小新
没有蜡笔的小新 2021-02-15 23:34

There are a lot of examples on how to perform javascript tests with Capybara/Selenium/Rspec in which you can write a test like so:

it \"does som         


        
4条回答
  •  感情败类
    2021-02-16 00:08

    Hmm I noticed a couple lines in the docs that seem to say that the above can only be done in Rspec

    However, if you are using RSpec or Cucumber, you may instead want to consider leaving the faster :rack_test as the default_driver, and marking only those tests that require a JavaScript-capable driver using :js => true or @javascript, respectively.

提交回复
热议问题