stable

Clone or download

Read-only

fixes request #40471 program management test is flacky

it might occur that cypress try to do assertions before the DOM is re-rendered we have a stack trace in logs: <failure message="Cannot read properties of undefined (reading 'KeyboardEvent')" type="TypeError"> <![CDATA[ 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. This patch check that element is rendered before interacting with it, you should no longer have previous error Note: I'm not able to reproduce the issue locally, the best I can do is check that it does not break existing tests: running make tests-e2e should succeed Change-Id: Ieb51f7f532aba7287b9917313eeec973a25a662c

Modified Files

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