// 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); }); }