Wait till CKEditor is ready before checking it
With chromedriver >= 80, the tests are freezing sometimes, particularly when the same editor is loaded again. We don't know whether it's a CKEditor issue or a chromedriver issue. In the past we've had some errors related to CKEditor trying to load the same instance twice and we aren't sure they have been fixed since we could never reproduce them. It could be a coincidence, though. If we modify the views so the only content of the `<body>` tag is a textarea with the `html-area` class, chromedriver freezes even if we only access the page once. So maybe we're only detecting the problem on the second visit because the second request is faster than the first one. Since chromedriver no longer hangs after this change, we don't have to force any chromedriver version anymore.
This commit is contained in:
@@ -53,6 +53,5 @@ Capybara.register_driver :headless_chrome do |app|
|
||||
end
|
||||
|
||||
Capybara.exact = true
|
||||
Webdrivers::Chromedriver.required_version = "2.38"
|
||||
|
||||
OmniAuth.config.test_mode = true
|
||||
|
||||
Reference in New Issue
Block a user