stable

Clone or download

Read-only

chore: Do not abuse reloadUntilCondition

Part of request #40471 program management test is flacky How to test: make tests-e2e should pass. Why? Cypress has irregular issues typing into an input in the Program Management configuration page. We have a stack trace in logs: TypeError: Cannot read properties of undefined (reading 'KeyboardEvent') at Keyboard.fireSimulatedEvent (https://tuleap/__cypress/runner/cypress_runner.js:116728:28) at Keyboard.simulatedKeydown (https://tuleap/__cypress/runner/cypress_runner.js:116851:58) at Keyboard.typeSimulatedKey but the screenshot shows a correct form. Following a suggestion at https://github.com/cypress-io/cypress/issues/9075#issuecomment-1761664131, we add a check that the input is visible before trying to type into it. As we don't reproduce the issue locally, we can only check that it does not break the test. Change-Id: I1ff9365354a5aff573d69b7c9c013360c3ccd864

Modified Files

Name
M plugins/program_management/tests/e2e/cypress/cypress/e2e/program_management.cy.ts +1 −17 Go to diff View file