Using Capybara for AJAX integration tests

后端 未结 2 2116
既然无缘
既然无缘 2021-01-03 04:09

I am using Capybara for rails integration tests. When it comes to AJAX requests, I am getting the following error:

Capybara::TimeoutError: failed to resynchr         


        
2条回答
  •  春和景丽
    2021-01-03 04:27

    I had this same issue once I upgraded my selenium/capybara gems. There is some AJAX synchronization logic that is causing this, so I just disabled it within my test hook.

    Before do
      page.driver.options[:resynchronize] = false
    end
    

提交回复
热议问题