•  
      request #42636 Program management end-to-end test is flaky
    Infos
    #42636
    Joris MASSON (jmasson)
    2025-04-17 15:01
    2025-04-17 10:07
    44311
    Details
    Program management end-to-end test is flaky

    Follow-up of request #42186, request #40471 and request #41436

    The error returned in request #40471 still occurs.

    This time, on the cypress video we can see that cypress gets the input for the custom label for PIs, then the page reloads, then it tries to clear the input, but fails to do so. My guess is that despite the wait() that correctly catches the async request to link a new team, there is a race condition. When our production code receives the response to that request, it reloads the page. But cypress does not wait for that reload to happen, since it is on the same page, it looks for the input and finds it. Then, the page reloads, so the reference it had is lost, and it cannot type or clear the input that is now gone.

    We should add an assertion after the wait to make sure that our page has reloaded and we can safely touch the inputs.

    Cypress
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2025-04-17
    Attachments
    Empty
    References

    Follow-ups