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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to