Files
oott/frontend/test/widget/about_test.dart
T
rzuastiandClaude Opus 4.8 46d0778ebc Replace source/license links with website link on About screen
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>
2026-06-12 10:00:15 -04:00

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