Skip to content

Commit bbdbfe4

Browse files
committed
chore: fix test [#148]
1 parent b1827c1 commit bbdbfe4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/core/test/dnd-basics.spec.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,24 @@ describe('dnd basics', () => {
109109
await test.dragOver('bb', 'bottom');
110110
await test.drop();
111111
await test.expectVisibleItemContents('aa', ['aab', 'aac', 'aad']);
112+
await test.expectVisibleItemContents('bb', [
113+
'aaa',
114+
'bba',
115+
'bbb',
116+
'bbc',
117+
'bbd',
118+
]);
119+
await test.expectVisibleItemContents('b', ['ba', 'bb', 'bc', 'bd']);
120+
});
121+
122+
it('drag item to open-folder-item bottom with canDropBelowOpenFolders', async () => {
123+
const test = await new TestUtil().renderOpenTree({
124+
canDropBelowOpenFolders: true,
125+
});
126+
await test.startDrag('aaa');
127+
await test.dragOver('bb', 'bottom');
128+
await test.drop();
129+
await test.expectVisibleItemContents('aa', ['aab', 'aac', 'aad']);
112130
await test.expectItemContentsVisibleAndUnchanged('bb');
113131
await test.expectVisibleItemContents('b', [
114132
'ba',

0 commit comments

Comments
 (0)