Skip to content

Commit

Permalink
Fix test (#27700)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raushen committed Jul 2, 2024
1 parent 4ba929c commit e01d73d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion e2e/testcafe-devextreme/tests/treeList/rowDragging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const tasksT1228650 = [{
test('TreeList - Expand/collapse mechanism breaks after dragging action in the space between the last row and the border (T1228650)', async (t) => {
const treeList = new TreeList('#container');
const dataRow = treeList.getDataRow(0);
const expandButton = (dataRow.getDataCell(0) as ExpandableCell).getExpandButton();
const expandButton = new ExpandableCell(dataRow.getDataCell(0)).getExpandButton();
const freeSpaceRow = treeList.getFreeSpaceRow();
await t
.dragToElement(freeSpaceRow, dataRow.element)
Expand Down
7 changes: 4 additions & 3 deletions packages/testcafe-models/treeList/expandableCell.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import FocusableElement from "../internal/focusable";
import DataCell from "../dataGrid/data/cell";

const CLASS = {
expandButton: 'dx-treelist-icon-container',
};

export default class ExpandableCell extends DataCell {
constructor(dataRow: Selector, index: number, widgetName: string) {
super(dataRow, index, widgetName);
export default class ExpandableCell extends FocusableElement {
constructor(cell: DataCell) {
super(cell.element);
}

getExpandButton(): Selector {
Expand Down

0 comments on commit e01d73d

Please sign in to comment.