diff --git a/packages/flutter/test/widgets/custom_painter_test.dart b/packages/flutter/test/widgets/custom_painter_test.dart index ea6534f992e9..33caaec92252 100644 --- a/packages/flutter/test/widgets/custom_painter_test.dart +++ b/packages/flutter/test/widgets/custom_painter_test.dart @@ -401,6 +401,10 @@ void _defineTests() { case SemanticsAction.showOnScreen: case SemanticsAction.tap: semanticsOwner.performAction(expectedId, action); + // TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809) + // ignore: no_default_cases + default: + throw UnimplementedError(); } expect(performedActions.length, expectedLength); expect(performedActions.last, action); diff --git a/packages/flutter/test/widgets/semantics_test.dart b/packages/flutter/test/widgets/semantics_test.dart index 95180c83929c..d4ba5b7f33d9 100644 --- a/packages/flutter/test/widgets/semantics_test.dart +++ b/packages/flutter/test/widgets/semantics_test.dart @@ -571,6 +571,10 @@ void main() { case SemanticsAction.showOnScreen: case SemanticsAction.tap: semanticsOwner.performAction(expectedId, action); + // TODO(yjbanov): temporary adding default case until https://github.com/flutter/engine/pull/53094 rolls in (see https://github.com/flutter/flutter/issues/83809) + // ignore: no_default_cases + default: + throw UnimplementedError(); } expect(performedActions.length, expectedLength); expect(performedActions.last, action);