mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:27:10 +08:00
![Alan Guo Xiang Tan](/assets/img/avatar_default.png)
What is the problem? Prior to this change, we had a `has_css?(context + ":not(.is-expanded)"` check when using the select-kit component page object. The problem here is that this check will end up waiting the full capybara default wait time if the select-kit has already been expanded. It turns out that we were calling this check alot of times when the select-kit has already been expanded resulting in many tests waiting the full default wait time. What is the fix? The fix here is to specify the `wait: 0` option such that we do not wait and fundamentally, there is no need for us to wait at all here.