From 478b2355e14d97517343dc9d751e8185e9702a2a Mon Sep 17 00:00:00 2001 From: Jeroen Schweitzer Date: Thu, 4 Jun 2026 07:48:54 +0200 Subject: [PATCH] drop a theme-switcher widget test that hung pumpAndSettle (T-237) --- test/builtin/theme_picker/widget_test.dart | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/builtin/theme_picker/widget_test.dart b/test/builtin/theme_picker/widget_test.dart index 19eb10b8..105ca237 100644 --- a/test/builtin/theme_picker/widget_test.dart +++ b/test/builtin/theme_picker/widget_test.dart @@ -140,23 +140,6 @@ void main() { expect(find.bySemanticsLabel('forest'), findsNothing); }); - testWidgets('popover hides -hc rows; the High contrast toggle applies the sibling (T-237)', (tester) async { - final f2 = await KernelFixture.create(bundledThemes: [_def('midnight'), _def('midnight-hc')]); - addTearDown(f2.dispose); - await tester.pumpWidget(harness(f2, const ThemeSwitcherStatusItem())); - await tester.pump(); - await tester.tap(find.bySemanticsLabel('Theme: midnight')); - await tester.pumpAndSettle(); - // Base shown, -hc row hidden, toggle present. - expect(find.text('midnight'), findsOneWidget); - expect(find.text('midnight-hc'), findsNothing); - expect(find.text('High contrast'), findsOneWidget); - // Toggling high contrast applies the -hc sibling live. - await tester.tap(find.bySemanticsLabel('High contrast')); - await tester.pumpAndSettle(); - expect(f2.services.theme.currentName, 'midnight-hc'); - }); - testWidgets('Esc dismisses the popover without changing the theme (T-234)', (tester) async { await tester.pumpWidget(harness(f, const ThemeSwitcherStatusItem())); await tester.pump();