•  
      request #36865 Flaky switch-to e2e test
    Infos
    #36865
    Joris MASSON (jmasson)
    2024-10-14 17:21
    2024-02-28 11:01
    38476
    Details
    Flaky switch-to e2e test

    The test is flaky (can sometimes pass, sometimes fail) for several reasons:

    1. It tries to assert the position of the focused item in a collection of items, but it fails to detect it. This is because the DOM hierarchy does not match the "logical" hierarchy: the <a> link for projects is nested in a <div> which is itself nested in a <nav>, containing all links. The assertion assumes the <a> is directly child of the <nav>, and thus fails.
    2. It does not wait for asynchronous requests. The user history takes time to load, and when the test tries to jump from the project list to the recent items, the latter are not loaded yet, which fails the test.

    We should fix the "position-detection" assertion and wait for the history to be loaded and displayed to fix the flakiness.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2024-02-28
    Attachments
    Empty
    References
    Referencing request #36865

    Follow-ups