독립 제어 평면 클라이언트 작업을 시작할 수 있도록 Flutter 앱 scaffold와 기본 렌더링 테스트를 추가하고, 완료된 client app 작업 산출물을 아카이브한다.
29 lines
1.1 KiB
Dart
29 lines
1.1 KiB
Dart
// This is a basic Flutter widget test for OTO Console app shell.
|
|
//
|
|
// To perform an interaction with a widget in your test, use the WidgetTester
|
|
// utility in the flutter_test package. For example, you can send tap and scroll
|
|
// gestures. You can also use WidgetTester to find child widgets in the widget
|
|
// tree, read text, and verify that the values of widget properties are correct.
|
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:oto_client/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('OTO Console app shell rendering test', (WidgetTester tester) async {
|
|
// Build our app and trigger a frame.
|
|
await tester.pumpWidget(const MyApp());
|
|
|
|
// Verify that our app bar shows the correct title.
|
|
expect(find.text('OTO Console'), findsOneWidget);
|
|
|
|
// Verify that welcome text and subtext are rendered.
|
|
expect(find.text('Welcome to OTO Console'), findsOneWidget);
|
|
expect(find.text('Independent Control Plane'), findsOneWidget);
|
|
|
|
// Verify dashboard icon is present.
|
|
expect(find.byIcon(Icons.dashboard), findsOneWidget);
|
|
});
|
|
}
|
|
|