I have two situation in my DataView that I want to test.
First situation : the store is empty. In this case I, through, emptyText render a message. This message contains the element id '#empty_msg.
I try to get this element using jquery in the test case but i returns empty. I used :
Right now, `waitForViewRendered` waits until the view will have at least 1 item rendered. If your store is empty this will never happen and you'll get a timeout error. This is an edge case and we'll fix it in the next release.
For now, you can workaround this situation (dataview + empty store) using `waitForSelector` for example.
Thanks for the quick answer. I'd prefer using JQuery to DOM manipulation. I think it's easier and less verbose(I mean write less). Why should I use Ext? Maybe your knowledge can see beyond than mine, in this case, I would change my choices and look more at Ext.
I will test the data view in both case, using waitForSelector and waitForViewRendered (when the store is not empty) and let you know the results.
tks
Last edited by marogalli on Mon Mar 12, 2012 10:59 pm, edited 2 times in total.