diff --git a/packages/flutter/test/widgets/reorderable_list_test.dart b/packages/flutter/test/widgets/reorderable_list_test.dart index e052213ff2..6e10838530 100644 --- a/packages/flutter/test/widgets/reorderable_list_test.dart +++ b/packages/flutter/test/widgets/reorderable_list_test.dart @@ -641,7 +641,7 @@ void main() { expect(items, orderedEquals([1, 0, 2, 3, 4])); }); - testWidgets('It should allow the item to be dragged when enabled is true', (WidgetTester tester) async { + testWidgets('It should not allow the item to be dragged when enabled is false', (WidgetTester tester) async { const int itemCount = 5; int onReorderCallCount = 0; final List items = List.generate(itemCount, (int index) => index); @@ -679,7 +679,7 @@ void main() { await tester.pump(kLongPressTimeout); // Drag enough to move down the first item - await drag.moveBy(const Offset(0, 150)); + await drag.moveBy(const Offset(0, 50)); await tester.pump(); await drag.up(); await tester.pumpAndSettle(); @@ -737,7 +737,7 @@ void main() { expect(items, orderedEquals([1, 0, 2, 3, 4])); }); - testWidgets('It should allow the item to be dragged when enabled is true', (WidgetTester tester) async { + testWidgets('It should not allow the item to be dragged when enabled is false', (WidgetTester tester) async { const int itemCount = 5; int onReorderCallCount = 0; final List items = List.generate(itemCount, (int index) => index);