From 9a1ee46dace95b3d74a0efbf76f0046347dd009a Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 1 Apr 2026 13:33:02 +0400 Subject: [PATCH] Make test fail --- packages/core/test/specs/utils/sorter/sorterLayers.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/test/specs/utils/sorter/sorterLayers.ts b/packages/core/test/specs/utils/sorter/sorterLayers.ts index 3d1005410..0139e3917 100644 --- a/packages/core/test/specs/utils/sorter/sorterLayers.ts +++ b/packages/core/test/specs/utils/sorter/sorterLayers.ts @@ -32,7 +32,7 @@ describe('Layers sorter', () => { editor.destroy(); }); - test('removes the wrong hidden sibling when sorting layers with hidden siblings in the same collection', () => { + test('moves the hidden source after the target without removing other hidden siblings', () => { editor.setComponents(`
Visible A
@@ -67,8 +67,6 @@ describe('Layers sorter', () => { sorter.endDrag(); - expect(getChildIds(wrapper)).toEqual(['hidden-a', 'visible-a', 'visible-b']); - expect(getChildIds(wrapper)).not.toContain('hidden-b'); - expect(getChildIds(wrapper).indexOf('hidden-a')).toBe(0); + expect(getChildIds(wrapper)).toEqual(['visible-a', 'hidden-a', 'visible-b', 'hidden-b']); }); });