Get help with testing, discuss unit testing strategies etc.


Post by nnemani »

I have a REST api
I have defined a store, and when I try to load it within my test suite, i always get 'null'
The Store is having a proxy defined.
type: 'ajax',
url: '/get-data,
method : 'GET',
headers : { 'Content-Type': 'application/json','Accept': 'application/json' },

and the test is:

t.wait("require", 30000);
t.waitForStoresToLoad('MyStore', function () {
t.endWait("require");
});

Direct call to the rest api works fine.

What am I doing wrong?

Post by nnemani »

This is resolved now. No issue with Siesta.
It was an external library dependency issue in one of my other files, because of which the load was failing.
Chrome Developer tools helped a lot in debugging this issue. There was an error at the console.

Post Reply