mirror of
https://github.com/kuhyx/testsAndMisc-archive.git
synced 2026-07-04 11:43:13 +02:00
- C/lichess_random_engine, vocabulary_curve, misc/split, 1dvelocitysimulator, opening_learner: test suites added - CPP/miscelanious: tests added - TS/battery-status, champions_leauge_scores, two-inputs: tests added - python_pkg/fm24_searcher, wake_alarm: new packages added - Fix ruff/cppcheck/eslint/clang-format failures - Update .gitignore for C/C++ build artifacts
26 lines
877 B
Dart
26 lines
877 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
import 'package:pomodoro_app/main.dart' as app;
|
|
import 'package:pomodoro_app/main.dart';
|
|
|
|
void main() {
|
|
testWidgets('main() runs the app', (tester) async {
|
|
app.main();
|
|
await tester.pump();
|
|
expect(find.byType(MaterialApp), findsOneWidget);
|
|
});
|
|
|
|
testWidgets('PomodoroApp builds and shows MaterialApp', (tester) async {
|
|
await tester.pumpWidget(const PomodoroApp());
|
|
expect(find.byType(MaterialApp), findsOneWidget);
|
|
});
|
|
|
|
testWidgets('PomodoroApp uses dark theme', (tester) async {
|
|
await tester.pumpWidget(const PomodoroApp());
|
|
final materialApp = tester.widget<MaterialApp>(find.byType(MaterialApp));
|
|
expect(materialApp.debugShowCheckedModeBanner, false);
|
|
expect(materialApp.title, 'Pomodoro');
|
|
expect(materialApp.theme, isNotNull);
|
|
});
|
|
}
|