diff --git a/test/queue_test.dart b/test/queue_test.dart index ea4cd37..69c3414 100644 --- a/test/queue_test.dart +++ b/test/queue_test.dart @@ -163,7 +163,8 @@ void main() { c.settings.maxParallelJobs = limit; final dir = Directory.systemTemp.createTempSync('jj_par_'); for (var i = 0; i < 5; i++) { - c.videos.add(VideoItem(p.join(dir.path, 'v$i.mp4'))..info = const MediaInfo(duration: Duration(seconds: 1))); + final f = File(p.join(dir.path, 'v$i.mp4'))..writeAsStringSync(''); // 없는 파일은 만들지 않으므로 + c.videos.add(VideoItem(f.path)..info = const MediaInfo(duration: Duration(seconds: 1))); } await c.buildAll(); dir.deleteSync(recursive: true); diff --git a/test/scale_menu_test.dart b/test/scale_menu_test.dart index e23e1aa..b478d88 100644 --- a/test/scale_menu_test.dart +++ b/test/scale_menu_test.dart @@ -150,7 +150,9 @@ void main() { expect(tester.getRect(find.byTooltip('화면 크게')).left, greaterThan(0)); // 넓을 때는 글이 있는 버튼, 좁을 때는 아이콘만 (기능은 그대로) expect(find.text('자막 만들기 & MKV 만들기 (1)'), width >= 2300 ? findsOneWidget : anything); - expect(find.textContaining('MKV 만들기 (1)'), findsWidgets); + // MKV 만들기: 아주 좁으면 아이콘만 (체크 수는 마우스를 올리면) + expect(find.byTooltip('MKV 만들기 (1)'), findsOneWidget); + if (width >= 1300) expect(find.textContaining('MKV 만들기 (1)'), findsWidgets); } // 가장 좁을 때: 아이콘만 남고 설명은 마우스를 올리면 expect(find.text('동영상 추가'), findsNothing);