From 4a57ce7932230c93d7c9e031f12d461dfdcb30ae Mon Sep 17 00:00:00 2001 From: Yegor Date: Wed, 16 Oct 2024 13:46:16 -0700 Subject: [PATCH] Temporarily skip SemanticsFlag test to allow new flag to roll in (#157017) This test relies on the enumeration of all engine flags, and it will fail when https://github.com/flutter/engine/pull/55780 adds `SemanticsFlag.hasSelectedState`. So temporarily skip the test to allow the new flag to be added. I will later unskip the test and change it to check for the new flag as well. A step towards https://github.com/flutter/flutter/issues/66673 --- packages/flutter/test/widgets/semantics_test.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flutter/test/widgets/semantics_test.dart b/packages/flutter/test/widgets/semantics_test.dart index 8b0d18375f..29ca3b20bf 100644 --- a/packages/flutter/test/widgets/semantics_test.dart +++ b/packages/flutter/test/widgets/semantics_test.dart @@ -710,7 +710,11 @@ void main() { ], ); expect(semantics, hasSemantics(expectedSemantics, ignoreId: true)); - }); + }, skip: true); // TODO(yjbanov): https://github.com/flutter/flutter/issues/66673 + // Skipped temporarily to allow https://github.com/flutter/engine/pull/55780 + // to roll into the framework, which introduces a new flag. Because this + // test enumerates all flags, the new flag breaks it. This test will need + // to be updated after the roll. testWidgets('Actions can be replaced without triggering semantics update', (WidgetTester tester) async { final SemanticsTester semantics = SemanticsTester(tester);