DEV: Disable animation in system tests (#21821)

What is this change?

This change is an attempt to avoid flakiness in our tests due to
animations being enabled in our tests. An example of flakiness caused by
animations is when the `find(selector).click` pattern is used. When
`find(selector)` returns the node, its position may have changed if the
element is still moving. However, the `click` method will end up
clicking on the old position.

Either way, there is no need for us to make system tests even more
complicated by enabling animations.
This commit is contained in:
Alan Guo Xiang Tan 2023-05-30 13:45:24 +09:00 committed by GitHub
parent e7b55c11df
commit b580f04d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ RSpec.configure do |config|
end
Capybara.threadsafe = true
Capybara.disable_animation = false
Capybara.disable_animation = true
# Click offsets is calculated from top left of element
Capybara.w3c_click_offset = false