I want to test a LongPressDraggable in Flutter. The WidgetTester provide methods like longPress or several drag methods. But there is no "longPressDrag" or something like this. The first idea was to run a longPress and a drag. But after the longPress the widget tester doesnt hold the widget and i can't drag it.
await tester.longPress(from);
await tester.timedDrag(from, offset, Duration(milliseconds: time));
A workaround is to use the timedDrag and run it super slow. This works but takes a lot of time.
await tester.timedDrag(from, offset, Duration(seconds: 15));
Is there a correct way to test the widget?