mirror of
https://github.com/rzuasti/oott.git
synced 2026-07-08 19:21:54 +02:00
Remove the source-code link and AGPL license row, and point users to the project website (https://oott-security.net) instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
29 lines
931 B
Dart
29 lines
931 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:frontend/about/about.dart';
|
|
|
|
import '../helpers/backend_test_harness.dart';
|
|
import '../helpers/pump_app.dart';
|
|
|
|
void main() {
|
|
setUp(() async {
|
|
await setUpBackendForTest();
|
|
});
|
|
|
|
testWidgets('renders the about content and release fallback', (tester) async {
|
|
await pumpScreen(tester, const About());
|
|
// PackageInfo.fromPlatform() has no plugin in tests, so the FutureBuilder
|
|
// falls back to the hard-coded release date.
|
|
await tester.pump();
|
|
|
|
// The screen title now lives in the shared shell AppBar, not the body.
|
|
// Assert the fallback prefix only, not the release date literal (it changes
|
|
// every release).
|
|
expect(find.textContaining('Released'), findsOneWidget);
|
|
expect(
|
|
find.text('Check out our website and Git repo here'),
|
|
findsOneWidget,
|
|
);
|
|
expect(find.text('openssl'), findsOneWidget);
|
|
});
|
|
}
|