feat: initial release of Oracle 999 divination app
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:words999/main.dart';
|
||||
import 'package:words999/services/words_repository.dart';
|
||||
|
||||
void main() {
|
||||
testWidgets('App smoke test - launch oracle and verify navigation', (WidgetTester tester) async {
|
||||
SharedPreferences.setMockInitialValues({});
|
||||
await WordsRepository().init();
|
||||
await tester.pumpWidget(const Words999App());
|
||||
await tester.pump();
|
||||
await tester.pump(const Duration(milliseconds: 300));
|
||||
|
||||
// Verify app title and destinations
|
||||
expect(find.text('Оракул 999'), findsOneWidget);
|
||||
expect(find.text('Поиск 000..999'), findsOneWidget);
|
||||
expect(find.text('Расклады'), findsOneWidget);
|
||||
expect(find.text('Каталог 999'), findsOneWidget);
|
||||
expect(find.text('История'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user