Skip to content

Commit c228b97

Browse files
committed
Fix bug: expectRowCount will get doubled row count if there is pinned columns
1 parent f137022 commit c228b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/gridTestUtils.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = {
149149
*/
150150
expectRowCount: function( gridId, expectedNumRows ) {
151151

152-
var rows = this.getGrid( gridId ).all( by.repeater('(rowRenderIndex, row) in rowContainer.renderedRows track by $index') );
152+
var rows = this.getGrid( gridId ).element( by.css('.ui-grid-render-container-body')).all( by.repeater('(rowRenderIndex, row) in rowContainer.renderedRows track by $index') );
153153
expect(rows.count()).toEqual(expectedNumRows);
154154
},
155155

0 commit comments

Comments
 (0)