mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 13:17:13 +08:00

This was accidentally selecting the close button on `<DModalLegacy />`, which is present in the DOM with `display: none`. The close button logic would close any active modal, so the test would pass. However, it will stop passing when we remove the legacy modal system.