diff --git a/packages/flutter/lib/src/material/chip.dart b/packages/flutter/lib/src/material/chip.dart index 96cf9ad2bc3..cdcb0d4c6f0 100644 --- a/packages/flutter/lib/src/material/chip.dart +++ b/packages/flutter/lib/src/material/chip.dart @@ -1784,23 +1784,27 @@ class _RawChipState extends State with TickerProviderStateMixin[ + TestSemantics( + textDirection: TextDirection.ltr, + children: [ + TestSemantics( + flags: [SemanticsFlag.scopesRoute], + children: [ + TestSemantics( + label: 'test', + textDirection: TextDirection.ltr, + children: [ + TestSemantics( + label: 'Delete', + actions: [SemanticsAction.tap], + textDirection: TextDirection.ltr, + flags: [ + SemanticsFlag.isButton, + ], + ), + ], + ), + ], + ), + ], + ), + ], + ), ignoreTransform: true, ignoreId: true, ignoreRect: true)); + semanticsTester.dispose(); + }); + testWidgets('with onPressed', (WidgetTester tester) async { final SemanticsTester semanticsTester = SemanticsTester(tester);