mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 01:35:37 +08:00

This regressed in b6dc929. A test to ensure this doesn't regress has been added as well. This PR also fixes a flakey system spec. The conditional UI gets triggered automatically, so the system spec shouldn't explicitly call `find(".passkey-login-button").click`, because sometimes it isn't present and that causes a test failure.