Files
m8chat-app2/test/widget_test.dart
help4bis 8f13c725a4 feat: Phase 1 complete — Matrix login, rooms, chat, profile
- Direct m.login.password auth against matrix.m8chat.au
- Room list with unread badges, last message, timestamps
- Chat timeline (text, images, files, replies, reactions)
- Profile screen with expandable Notifications and Security sections
- Olm E2EE initialisation (web WASM bootstrap)
- Global error handler preventing Matrix SDK crashes
- GoRouter with refreshListenable (no recreation on auth change)
- Feature-first clean architecture: Riverpod + GoRouter + Drift
- Deployed to https://app2.m8chat.au

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 06:26:57 +10:00

39 lines
1.1 KiB
Dart

// Version: 1.0.0 | Created: 2026-04-01
// Phase 1 smoke tests.
// Verifies the app can render its login screen and core routes exist.
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:m8chat_app/app/theme.dart';
void main() {
group('M8Chat theme', () {
test('dark theme builds without error', () {
final theme = buildDarkTheme();
expect(theme, isNotNull);
expect(theme.brightness, Brightness.dark);
});
test('light theme builds without error', () {
final theme = buildLightTheme();
expect(theme, isNotNull);
expect(theme.brightness, Brightness.light);
});
});
group('ProviderScope', () {
testWidgets('renders without crashing', (tester) async {
await tester.pumpWidget(
const ProviderScope(
child: MaterialApp(
home: Scaffold(body: Center(child: Text('M8Chat'))),
),
),
);
expect(find.text('M8Chat'), findsOneWidget);
});
});
}