Pending

User tests: Successful: Unsuccessful:

avatar muhme
muhme
13 Jan 2026

Summary of Changes

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.

Testing Instructions

  • Run overall Cypress System Tests (given via CI).
  • Run the sometimes failing System Test at least three times:
    npx cypress run --spec tests/System/integration/administrator/components/com_menu/MenuItem.cy.js
    
  • Check menu items still work in backend

Actual result BEFORE applying this Pull Request

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

Expected result AFTER applying this Pull Request

Cypress System Tests passed

Link to documentations

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

avatar muhme muhme - open - 13 Jan 2026
avatar muhme muhme - change - 13 Jan 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jan 2026
Category JavaScript Repository NPM Change
avatar tecpromotion tecpromotion - change - 13 Jan 2026
Title
Check fancy select choices instance
[5.4] Check fancy select choices instance
avatar tecpromotion tecpromotion - edited - 13 Jan 2026
avatar muhme
muhme - comment - 13 Jan 2026

@heelc29 I quick tested your #46681 successfully, is this PR still useful or should we close it?

avatar ceford ceford - test_item - 14 Jan 2026 - Tested successfully
avatar ceford
ceford - comment - 14 Jan 2026

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.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46679.

avatar muhme muhme - change - 15 Jan 2026
The description was changed
avatar muhme muhme - edited - 15 Jan 2026
avatar heelc29
heelc29 - comment - 15 Jan 2026

is this PR still useful?

yes and no

avatar muhme
muhme - comment - 27 Jan 2026

@heelc29 Do you recommend to merge or to close this PR?

Add a Comment

Login with GitHub to post a comment