You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Includes adding track by col.uid to footer, and changing e2e test library
to use that in all areas.
Filtering now has a date filter added, which changes which rows are returned,
adjust tests appropriately.
401 all features now has grouping enabled, there are more menu items to check
for.
<divng-repeat="col in colContainer.renderedColumns track by col.colDef.name" ui-grid-footer-cellcol="col" render-index="$index" class="ui-grid-footer-cell ui-grid-clearfix"></div>
6
+
<divng-repeat="col in colContainer.renderedColumns track by col.uid" ui-grid-footer-cellcol="col" render-index="$index" class="ui-grid-footer-cell ui-grid-clearfix"></div>
varheaderCols=this.getGrid(gridId).element(by.css('.ui-grid-render-container-body')).element(by.css('.ui-grid-header')).all(by.repeater('col in colContainer.renderedColumns track by col.colDef.name'));
115
+
varheaderCols=this.getGrid(gridId).element(by.css('.ui-grid-render-container-body')).element(by.css('.ui-grid-header')).all(by.repeater('col in colContainer.renderedColumns track by col.uid'));
varheaderCols=this.getGrid(gridId).element(by.css('.ui-grid-render-container-left')).element(by.css('.ui-grid-header')).all(by.repeater('col in colContainer.renderedColumns track by col.colDef.name'));
135
+
varheaderCols=this.getGrid(gridId).element(by.css('.ui-grid-render-container-left')).element(by.css('.ui-grid-header')).all(by.repeater('col in colContainer.renderedColumns track by col.uid'));
varfooterCols=this.getGrid(gridId).element(by.css('.ui-grid-footer')).all(by.repeater('col in colContainer.renderedColumns track by col.colDef.name'));
155
+
varfooterCols=this.getGrid(gridId).element(by.css('.ui-grid-footer')).all(by.repeater('col in colContainer.renderedColumns track by col.uid'));
returnthis.getGrid(gridId).element(by.css('.ui-grid-render-container-body')).element(by.css('.ui-grid-header')).element(by.repeater('col in colContainer.renderedColumns track by col.colDef.name').row(expectedCol));
176
+
returnthis.getGrid(gridId).element(by.css('.ui-grid-render-container-body')).element(by.css('.ui-grid-header')).element(by.repeater('col in colContainer.renderedColumns track by col.uid').row(expectedCol));
returnthis.getGrid(gridId).element(by.css('.ui-grid-footer')).element(by.repeater('col in colContainer.renderedColumns track by col.colDef.name').row(expectedCol));
196
+
returnthis.getGrid(gridId).element(by.css('.ui-grid-footer')).element(by.repeater('col in colContainer.renderedColumns track by col.uid').row(expectedCol));
197
197
},
198
198
199
199
/**
@@ -217,7 +217,7 @@ module.exports = {
217
217
*/
218
218
dataCell: function(gridId,fetchRow,fetchCol){
219
219
varrow=this.getGrid(gridId).element(by.css('.ui-grid-render-container-body')).element(by.repeater('(rowRenderIndex, row) in rowContainer.renderedRows track by $index').row(fetchRow));
220
-
returnrow.element(by.repeater('(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name').row(fetchCol));
220
+
returnrow.element(by.repeater('(colRenderIndex, col) in colContainer.renderedColumns track by col.uid').row(fetchCol));
221
221
},
222
222
223
223
/**
@@ -309,7 +309,7 @@ module.exports = {
309
309
varrow=this.getRow(gridId,expectedRow);
310
310
311
311
for(vari=0;i<expectedValueArray.length;i++){
312
-
expect(row.element(by.repeater('(colRenderIndex, col) in colContainer.renderedColumns track by col.colDef.name').row(i)).getText()).toMatch(expectedValueArray[i],'Expected to match: '+expectedValueArray[i]+' in column: '+i);
312
+
expect(row.element(by.repeater('(colRenderIndex, col) in colContainer.renderedColumns track by col.uid').row(i)).getText()).toMatch(expectedValueArray[i],'Expected to match: '+expectedValueArray[i]+' in column: '+i);
0 commit comments