From 56f2e5027338c640fe7c9c544d3f8915177df37b Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Wed, 3 Oct 2018 19:20:43 +0200 Subject: [PATCH] chore: fix drag-drop test failure (#13400) Fixes a failure in `cdk/drag-drop` that was due to a couple of conflicting PRs getting in close to each other. --- src/cdk/drag-drop/drag.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/drag-drop/drag.spec.ts b/src/cdk/drag-drop/drag.spec.ts index 7cf639984d0..0848461d2d1 100644 --- a/src/cdk/drag-drop/drag.spec.ts +++ b/src/cdk/drag-drop/drag.spec.ts @@ -1622,7 +1622,7 @@ describe('CdkDrag', () => { dropInstances[0].connectedTo = dropInstances[1]; dropInstances[1].connectedTo = []; - dispatchMouseEvent(item.element.nativeElement, 'mousedown'); + startDraggingViaMouse(fixture, item.element.nativeElement); fixture.detectChanges(); const placeholder = dropZones[0].querySelector('.cdk-drag-placeholder')!;