Thanks Daniel.
We are using Modern, 7.0.0.156 with Sencha Studio 2.3.0
There is nothing special about the grid at all aside from a little bit of custom css to wrap text and a renderer to display the contents like a bulleted list. In fact, it only has one column.
Code:
Ext.define('MyApp.view.MyGrid', {
extend: 'Ext.grid.Grid',
requires: [ 'MyApp.store.ItemStore'],
xtype: 'mygrid',
hideHeaders: true,
variableHeights: true,
cls: ['isiList','isiListNoHeader'],
columns:[
{
name: 'Items',
dataIndex: 'item',
flex: 1,
renderer: function(val){
return '<div style="padding-left:10px;"><li>' + val + '</li></div>';
},
cell: {
encodeHtml: false
}
}
],
store: 'itemsStoreId'
});
The test I am running to check that the grid is empty is running against an instance of the application that never would have had data in the grid.
I have tried many things, all of which I can't remember, to verify that the grid is empty. Whenever I thought I had it, I put it into my other test in which the grid is not empty just to make sure it caused the test to fail in that instance. I was unable to succeed at this even when I thought I had it verifying an empty grid.
If you have any suggestions I'd really appreciate it.
Thanks,
Jill