oto/apps/client/test/widget_test.dart
toki fac57a96fd feat(client): 모듈형 OTO 콘솔 패키지를 추가한다
iop와 nomadcode가 같은 workspace에서 제품별 Flutter 콘솔을 위젯으로 삽입할 수 있어야 하므로 OTO client를 얇은 host 앱으로 정리하고 agent-shell 기반 embeddable console 패키지를 분리한다.
2026-06-06 18:14:06 +09:00

18 lines
611 B
Dart

import 'package:flutter_test/flutter_test.dart';
import 'package:oto_client/src/app/oto_client_app.dart';
void main() {
testWidgets('OTO client hosts embeddable console widgets', (tester) async {
await tester.pumpWidget(const OtoClientApp());
expect(find.text('Build Operations Overview'), findsOneWidget);
expect(find.byTooltip('Agent'), findsOneWidget);
await tester.tap(find.byTooltip('Agent'));
await tester.pumpAndSettle();
expect(find.textContaining('OTO agent surface is ready'), findsOneWidget);
expect(find.textContaining('Runner Registry'), findsOneWidget);
});
}