Skip to content

System test for language selector is flaky #6712

@pablobm

Description

@pablobm

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 #6589, but it didn't solve the problem.

While working on #6424, a potential clue was observed: the test failed when running on a local devcontainer, leaving the following screenshot:

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions