Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Get help with testing, discuss unit testing strategies etc.


Post Reply
User avatar
paulb
Posts: 31
Joined: Thu Apr 11, 2019 9:47 am

Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by paulb »

Hi,
when querying unrendered ExtJS components, Siestas query function throws an error.
Can be reproduced (in an ExtJS test) with the following code:

Code: Select all

StartTest(function (t) {
	new Ext.button.Button({ foo: true });
	t.is(Ext.ComponentQuery.query('[foo]').length, 1);
	t.query('>> [foo]'); // throws error
});

Could you please look into it and fix it?


User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 3390
Joined: Fri Apr 01, 2016 11:08 am

Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by pmiklashevich »

Thanks for the report! We will address!

Pavel Miklashevich - Core Developer

User avatar
nickolay
Core Developer
Core Developer
Posts: 3488
Joined: Mon May 16, 2011 10:48 am

Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by nickolay »

Fixed in the sources now, you can try it in the tomorrow nightly.

We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
paulb
Posts: 31
Joined: Thu Apr 11, 2019 9:47 am

Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by paulb »

Thanks for the quick fix!
Unfortunately the nightly builds seem broken. It only downloads a 1kb file. Other nightlies (calendar, scheduler) do work.


User avatar
sergey.maltsev
Core Developer
Core Developer
Posts: 683
Joined: Mon Dec 24, 2018 9:15 am

Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by sergey.maltsev »

Hi, paulb!

Please tell which package are you trying to download with no success?
I've tried these ones and they are just fine.
scheduler-2020-12-18-release.zip (163 MB)
siesta-standard-2020-12-18.zip (216 MB)


User avatar
paulb
Posts: 31
Joined: Thu Apr 11, 2019 9:47 am

Re: Querying unrendered components results in "Cannot read property 'dom' of undefined" error

Post by paulb »

Sorry, I missed that our licence has expired yesterday.


Post Reply