Échec occasionnel des tests Cypress sur Chrome Legacy
Dans un essai de reproductibilité, 6 fois sur 30 les tests Chrome Legacy ont échoué sur test_configs.js
(test 00-config_airr
) avec ce message :
`cy.then()` failed because you are mixing up async and sync code.
In your callback function you invoked 1 or more cy commands but then returned a synchronous value.
Cypress commands are asynchronous and it doesn't make sense to queue cy commands and yet return a synchronous value.
You likely forgot to properly chain the cy commands using another `cy.then()`.
The value you synchronously returned was: `true`
at getRet (http://localhost/__cypress/runner/cypress_runner.js:137733:19)
at tryCatcher (http://localhost/__cypress/runner/cypress_runner.js:10798:23)
at Function.Promise.attempt.Promise.try (http://localhost/__cypress/runner/cypress_runner.js:8072:29)
at Context.thenFn (http://localhost/__cypress/runner/cypress_runner.js:137744:23)
at Context.then (http://localhost/__cypress/runner/cypress_runner.js:138183:21)
at Context.<anonymous> (http://localhost/__cypress/runner/cypress_runner.js:153308:21)
From Your Spec Code:
at Context.eval (http://localhost/__cypress/tests?p=cypress/support/index.js:811:42)