갤럭시 검색 결과에서 행성 상세로 이동

This commit is contained in:
Sn-Kinos
2026-10-05 17:39:23 +09:00
parent 54d0b23260
commit 8a1b824307
11 changed files with 394 additions and 171 deletions
+9
View File
@@ -471,6 +471,15 @@ void main() {
expect(find.text('전체 삭제'), findsOneWidget);
});
testWidgets('결과 줄을 누르면 그 행성 상세로 간다(10/5 실기기)', (tester) async {
PlanetNode? opened;
await _pump(tester, GalaxySearchScreen(onOpen: (p) => opened = p));
await tester.enterText(find.byType(TextField), 'BTS');
await tester.pumpAndSettle();
await tester.tap(find.textContaining('멤버 12,840명'));
expect(opened?.name, 'BTS');
});
testWidgets('없는 이름이면 사유를 알린다', (tester) async {
await _pump(tester, const GalaxySearchScreen());
await tester.enterText(find.byType(TextField), 'zzzz');