[openstreetmap/openstreetmap-website] System test for language selector is flaky (Issue #6712)

Pablo Brasero notifications at github.com
Thu Jan 15 10:48:24 UTC 2026


pablobm created an issue (openstreetmap/openstreetmap-website#6712)

The system test at `test/system/select_language_test.rb` fails randomly. The causes are unclear. It should be hardened so that it runs consistently.

There was an attempt to rectify this at https://github.com/openstreetmap/openstreetmap-website/pull/6589, but it didn't solve the problem.

While working on https://github.com/openstreetmap/openstreetmap-website/pull/6424, a potential clue was observed: the test failed when running on a local devcontainer, leaving the following screenshot:

<img width="815" height="284" alt="Language selection panel. The input box is empty, and the first language in the list (Afrikaans) has an outline that suggests it has the focus" src="https://github.com/user-attachments/assets/7561d296-eddc-492d-b629-bc93b2d08275" />

This suggests that the browser gives the focus to the first element in the list (Afrikaans) instead of leaving it on the input box. If you try this on your browser (open the selector, press tab to move the focus) then you won't be able to type in the box any more, which is consistent with the test failure.

As to what could possibly be moving the focus, no idea.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6712
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/6712 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260115/53f0fe48/attachment.htm>


More information about the rails-dev mailing list