main
dart 20 lines 575 Bytes
Raw
1 import 'package:flutter/material.dart';
2 import 'package:flutter_test/flutter_test.dart';
3 import 'package:localmind/bootstrap/bootstrap_screen.dart';
4 import 'package:localmind/bootstrap/bootstrap_state.dart';
5
6 void main() {
7 testWidgets('falls back to English for an unsupported device locale', (
8 tester,
9 ) async {
10 await tester.pumpWidget(
11 const BootstrapScreen(
12 state: BootstrapState(),
13 locale: Locale('de', 'DE'),
14 ),
15 );
16
17 expect(tester.takeException(), isNull);
18 expect(find.text('Initializing...'), findsOneWidget);
19 });
20 }