фиксы
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:moonwell_launcher/app/design_system/mw_launcher_components.dart';
|
||||
import 'package:moonwell_launcher/app/launcher_version.dart';
|
||||
import 'package:moonwell_launcher/app/theme/moonwell_design_system.dart';
|
||||
|
||||
void main() {
|
||||
@@ -137,6 +138,25 @@ void main() {
|
||||
expect(find.text('Проверить файлы'), findsOneWidget);
|
||||
expect(find.text('Выйти'), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('status bar uses the packaged launcher version', (tester) async {
|
||||
await tester.pumpWidget(
|
||||
LauncherVersionScope(
|
||||
version: '9.8.7',
|
||||
child: MaterialApp(
|
||||
theme: MoonWellTheme.create(MoonWellThemeVariant.forest),
|
||||
home: const Scaffold(
|
||||
body: SizedBox(
|
||||
height: 26,
|
||||
child: MwLauncherStatusBar(status: 'Ready'),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
expect(find.textContaining('v9.8.7'), findsOneWidget);
|
||||
});
|
||||
}
|
||||
|
||||
void _noop() {}
|
||||
|
||||
Reference in New Issue
Block a user