mirror of
https://github.com/discourse/discourse.git
synced 2025-06-20 19:31:31 +08:00

The "Tag synonyms when visiting edit tag page allows an admin to create a new tag as synonym when tag does not exist" system test was flaky with the following error: ``` Failure/Error: super Capybara::ElementNotFound: Unable to find css "#add-synonyms.is-expanded" ``` Backtrace points to the following location: ``` ... ./spec/system/page_objects/components/select_kit.rb:30:in `expanded_component' ./spec/system/page_objects/components/select_kit.rb:88:in `search' ... ``` What I noticed is that `PageObjects::Components::SelectKit#expanded_component` has already found the expanded element when it calls `#expand`. Therefore, there is no need for us to search for it again.