Rails integration test with selenium as webdriver - can't sign_in

前端 未结 3 872
别那么骄傲
别那么骄傲 2020-12-08 20:03

Hi
I have a very simple integration test

require \'integration_test_helper\'
Capybara.current_driver = :rack_test

class AdminSignsInTest < ActionDi         


        
3条回答
  •  遥遥无期
    2020-12-08 20:25

    I found mattwinder's answer worked, but I also had to comment out the line

    config.use_transactional_fixtures = true

    in spec/spec_helper.rb as well. Just overriding it in spec/support/database_cleaner.rb wasn't sufficient to make logins work with Selenium.

提交回复
热议问题