Skip to content

Commit 44bd409

Browse files
committed
update expanded test for treeview
1 parent 6e5b993 commit 44bd409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/devextreme/testing/tests/DevExpress.ui.widgets/treeView.expanded.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ module('Expanded items', {
225225
});
226226
const treeView = $treeView.dxTreeView('instance');
227227
const $firstItem = $treeView.find(`.${TREEVIEW_ITEM_CLASS}`).eq(0);
228-
const $icon = $firstItem.parent().find(`> .${TREEVIEW_TOGGLE_ITEM_VISIBILITY_CLASS}`);
228+
const $icon = $firstItem.find(`.${TREEVIEW_TOGGLE_ITEM_VISIBILITY_CLASS}`);
229229

230230
$icon.trigger('dxclick');
231231

232-
assert.ok(!treeView.option('items')[0].expanded, 'disabled item was not expanded');
232+
assert.ok(treeView.option('items')[0].expanded, 'disabled item was expanded');
233233
});
234234

235235
test('disabled item with custom expander icons should expand on click', function(assert) {

0 commit comments

Comments
 (0)