From 9425de7fc78a76df6ab17d130e6aaf8da6115d76 Mon Sep 17 00:00:00 2001 From: RyuJongJin <266630912+RyuJongJin@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:15:29 +0900 Subject: [PATCH] =?UTF-8?q?WIP=20=EC=8B=9C=ED=97=98=20=ED=9D=94=EB=93=A4?= =?UTF-8?q?=EB=A6=BC:=20explorer=5Fkeys=5Ftest=20=EC=9D=98=20=EB=B0=94?= =?UTF-8?q?=EA=BE=BC=20=ED=82=A4=20=EC=8B=9C=ED=97=98=20-=20=EC=A0=84?= =?UTF-8?q?=EC=B2=B4=20=EC=8B=A4=ED=96=89=EC=97=90=EC=84=9C=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=20=EC=9D=BD=EA=B8=B0=20=EB=B9=99=EA=B8=80=EC=9D=B4?= =?UTF-8?q?=EA=B0=80=20=EB=82=A8=EC=95=84=20pumpAndSettle=20=EC=9D=B4=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=20=EC=B4=88=EA=B3=BC=20=E2=86=92=20=EC=B0=BD?= =?UTF-8?q?=EC=9D=B4=20=EB=9C=B0=20=EB=95=8C=EA=B9=8C=EC=A7=80=EB=A7=8C=20?= =?UTF-8?q?=EA=B8=B0=EB=8B=A4=EB=A6=BC=20(=EA=B2=80=ED=86=A0=20=EB=8C=80?= =?UTF-8?q?=EA=B8=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- test/explorer_keys_test.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/explorer_keys_test.dart b/test/explorer_keys_test.dart index 7e3ab7d..9981425 100644 --- a/test/explorer_keys_test.dart +++ b/test/explorer_keys_test.dart @@ -65,7 +65,7 @@ void main() { AppController ctl() => AppController(PlatformServices(mediaTool: ProcessMediaTool('x', 'y'), storage: DesktopStorageService())); - testWidgets('탐색기: 바꾼 키 (새 폴더 = Ctrl+Shift+K) 를 누르면 그 동작 · 처음 키도 그대로 (F2 이름 변경)', (tester) async { + testWidgets('탐색기: 바꾼 키 (새 폴더 = Ctrl+Shift+K) 를 누르면 그 동작', (tester) async { tester.view.physicalSize = const Size(1400, 900); tester.view.devicePixelRatio = 1; addTearDown(tester.view.reset); @@ -84,10 +84,13 @@ void main() { await tester.sendKeyEvent(k); await tester.sendKeyUpEvent(LogicalKeyboardKey.shiftLeft); await tester.sendKeyUpEvent(LogicalKeyboardKey.controlLeft); - await tester.pumpAndSettle(); + // 전체 실행에서는 목록 읽기 빙글이가 남아 pumpAndSettle 이 끝나지 않을 수 있다 - 창이 뜰 때까지만 + for (var i = 0; i < 100 && find.widgetWithText(AlertDialog, '새 폴더').evaluate().isEmpty; i++) { + await tester.pump(const Duration(milliseconds: 50)); + } expect(find.widgetWithText(AlertDialog, '새 폴더'), findsOneWidget, reason: '바꾼 키로 새 폴더 창'); await tester.tap(find.text('취소').last); - await tester.pumpAndSettle(); + await tester.pump(const Duration(milliseconds: 300)); await tester.pumpWidget(const SizedBox()); await tester.pump(const Duration(seconds: 1)); });