How do I re-use Capybara sessions between tests?

后端 未结 4 1127
别那么骄傲
别那么骄傲 2021-02-05 09:27

I want to keep on using the same session and by that I mean Rails\' session between various Test::Unit integration tests that use Capybara. The Capybara::Sess

4条回答
  •  情深已故
    2021-02-05 10:04

    It may be worth posting the reason why you need this kind of behaviour. Usually, having the need to monkey patch Capybara, is an indication that you are attempting to use it for something it was not intended for. It is often possible to restructure the tests, so that you don't need the cookies persisted across integration tests.

提交回复
热议问题