Skip to content

Commit ebef9c7

Browse files
kohanyirobertJLLeitschuh
authored andcommitted
chore(test): Update gridTestUtils.spec.js (selectRow) (#5353)
selectRow doesn't work when ui-grid-selection is enabled together with ui-grid-tree-view. getRow returns first div in the row which will be the node expand/collapse icon's div if tree view is enabled.
1 parent 783c0c9 commit ebef9c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/e2e/gridTestUtils.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ module.exports = {
123123
selectRow: function( gridId, rowNum ) {
124124
// NOTE: Can't do .click() as it doesn't work when webdriving Firefox
125125
var row = this.getRow( gridId, rowNum );
126-
return browser.actions().mouseMove(row).mouseDown(row).mouseUp().perform();
126+
var btn = row.element( by.css('.ui-grid-selection-row-header-buttons') );
127+
return browser.actions().mouseMove(btn).mouseDown(btn).mouseUp().perform();
127128
},
128129

129130
/**

0 commit comments

Comments
 (0)