No Code Attached Yet bug
avatar brianteeman
brianteeman
14 Apr 2023

Every time I run this test it ends with an uncaught exception
(uncaught exception)TypeError: Cannot read properties of undefined (reading 'element')

image

avatar brianteeman brianteeman - open - 14 Apr 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Apr 2023
avatar laoneo
laoneo - comment - 18 Apr 2023

I never get such an error when I run the tests locally. Is there something printed to the browser console where we can see in which file and on which line the error happens?

avatar brianteeman
brianteeman - comment - 18 Apr 2023
err :TypeError: The following error originated from your application code, not from Cypress.

  > Cannot read properties of undefined (reading 'element')

When Cypress detects uncaught errors originating from your application it will automatically fail the current test.

This behavior is configurable, and you can choose to turn this off by listening to the `uncaught:exception` event.
index.js:7 runnable :[object Object]

choices.min.js?9.1.0:2 Uncaught TypeError: Cannot read properties of undefined (reading 'element')
    at e._removeEventListeners (choices.min.js?9.1.0:2:21241)
    at e.destroy (choices.min.js?9.1.0:2:6770)
    at HTMLElement.disconnectedCallback (joomla-field-fancy-select.min.js?5f1507ec943a2bdde346f3783754e2c0:1:4145)
e
avatar carlitorweb
carlitorweb - comment - 18 Apr 2023

Captura

avatar brianteeman
brianteeman - comment - 18 Apr 2023

@carlitorweb happy to see its not just me

avatar laoneo
laoneo - comment - 18 Apr 2023

They look different, one is in choices and one in the toolbar script.

avatar carlitorweb
carlitorweb - comment - 18 Apr 2023

The one I got is from tests #40404

avatar carlitorweb
carlitorweb - comment - 18 Apr 2023

Let me check Category.cy

avatar laoneo
laoneo - comment - 18 Apr 2023

run npm ci first, just to be sure no old assets are loaded

avatar carlitorweb
carlitorweb - comment - 18 Apr 2023

@laoneo same before and after npm ci
joomla-cms---Google-Chrome-1

avatar carlitorweb
carlitorweb - comment - 18 Apr 2023

Captura

avatar Hackwar Hackwar - change - 24 Aug 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 24 Aug 2023
avatar brianteeman brianteeman - change - 23 Jul 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-07-23 18:31:00
Closed_By brianteeman
avatar brianteeman brianteeman - close - 23 Jul 2024
avatar brianteeman
brianteeman - comment - 23 Jul 2024

Might as well close this one

Add a Comment

Login with GitHub to post a comment