Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

test(layers): remove brittle dnd wiring assertions

joshistoaste3595d3b203b
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerDndWiring.test.ts b/invokeai/frontend/webv2/src/workbench/widgets/layers/layerDndWiring.test.ts
deleted file mode 100644
index 8f175801a7..0000000000
--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/layerDndWiring.test.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import { describe, expect, it } from 'vitest';
-
-import * as layerGroupSectionModule from './LayerGroupSection.tsx?raw';
-import * as layerListItemModule from './LayerListItem.tsx?raw';
-
-const layerGroupSectionSource = layerGroupSectionModule.default;
-const layerListItemSource = layerListItemModule.default;
-
-describe('layer drag-and-drop wiring', () => {
- it('registers pointer dragging without a keyboard sensor', () => {
- expect(layerGroupSectionSource).toContain('useSensor(PointerSensor, POINTER_SENSOR_OPTIONS)');
- expect(layerGroupSectionSource).not.toContain('KeyboardSensor');
- expect(layerGroupSectionSource).not.toContain('sortableKeyboardCoordinates');
- });
-
- it('keeps pointer listeners on the row without keyboard-interactive sortable attributes', () => {
- expect(layerListItemSource).toContain('{...listeners}');
- expect(layerListItemSource).not.toContain('{...attributes}');
- });
-});