Console/test/widget_test.dart
jean-philippe 13c963575d Comprehensive codebase audit and cleanup
- Fixed broken test suite: replaced counter widget tests with Console UI tests
- Removed dead code: deleted unused MyHomePage widget and svrnty_components.dart library
- Updated project branding: renamed package from "my_app" to "console"
- Enhanced documentation: rewrote README with project features and setup instructions
- Added coding standards: strict typing rules forbidding 'any' type across all languages
- Implemented response protocol: structured answer format with context persistence
- Fixed backend button: corrected URL from https to http, added proper error handling
- Improved .gitignore: added Flutter plugins, CocoaPods, and design folder exclusions
- Fixed UI overflow: increased status card height to prevent RenderFlex overflow

These changes eliminate technical debt, establish code quality standards, and ensure all functionality works correctly across platforms.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 09:17:24 -04:00

20 lines
562 B
Dart

// Svrnty Console Widget Tests
import 'package:flutter_test/flutter_test.dart';
import 'package:console/main.dart';
void main() {
testWidgets('App launches and displays Console UI', (WidgetTester tester) async {
// Build our app and trigger a frame.
await tester.pumpWidget(const MyApp());
// Verify that the app title is set correctly.
expect(find.text('Svrnty'), findsOneWidget);
expect(find.text('Console'), findsOneWidget);
// Verify dashboard is displayed by default.
expect(find.text('Dashboard'), findsWidgets);
});
}