From a3f205c7d0ed447b77ab17370a2f71c12e28d033 Mon Sep 17 00:00:00 2001 From: Haitao Pan Date: Tue, 28 Apr 2026 11:56:48 +0800 Subject: [PATCH] Stabilize app shell surface test --- test/features/app/app_shell_surface_test.dart | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/test/features/app/app_shell_surface_test.dart b/test/features/app/app_shell_surface_test.dart index f4771189..12c82fe1 100644 --- a/test/features/app/app_shell_surface_test.dart +++ b/test/features/app/app_shell_surface_test.dart @@ -49,15 +49,24 @@ void main() { home: AppShell(controller: controller), ), ); - await tester.pumpAndSettle(); + await tester.pump(); - expect(find.byKey(const Key('assistant-conversation-shell')), findsOneWidget); - expect(find.byKey(const Key('settings-account-panel-card')), findsNothing); + expect( + find.byKey(const Key('assistant-conversation-shell')), + findsOneWidget, + ); + expect( + find.byKey(const Key('settings-account-panel-card')), + findsNothing, + ); controller.openSettings(); - await tester.pumpAndSettle(); + await tester.pump(); - expect(find.byKey(const Key('settings-account-panel-card')), findsOneWidget); + expect( + find.byKey(const Key('settings-account-panel-card')), + findsOneWidget, + ); }); }); }