User tests: Successful: Unsuccessful:
After merging of #46621, Cypress System Tests fail more often (but not always) with
(uncaught exception)TypeError: Cannot read properties of undefined (reading 'clearChoices').
However, investigations have shown that this also happened before, but not as often. It appears that Cypress speeds up page loading and XHR timing, and with the newly added onChange(), this causes Cypress to fail with an uncaught exception.
This simple hack prevents the crash. If you have a better implemention, you are very welcome to share it.
npx cypress run --spec tests/System/integration/administrator/components/com_menu/MenuItem.cy.js
Cypress System Tests fail sometimes with
(uncaught exception)TypeError: Cannot read properties of undefined (reading 'clearChoices')
Note, 15 January 2026: With the root cause fix #46681 merged, it would be hard to see the problem before this PR. Easiest is to revert the root cause fix PR eg. with:
git revert 6cdc072
npm run build:js
Cypress System Tests passed
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | JavaScript Repository NPM Change |
| Title |
|
||||||
I have tested this item ✅ successfully on 866c324
I think this is the first time I have run a Cypress test. It worked! Without the patch I see the error and 'failed' message. With the patch I see the 'passed' message.
is this PR still useful?
yes and no
@heelc29 I quick tested your #46681 successfully, is this PR still useful or should we close it?