fix: add simple test for l10n
This commit is contained in:
parent
a908340e8b
commit
37dcebaac6
1 changed files with 30 additions and 1 deletions
|
|
@ -0,0 +1,19 @@
|
|||
import 'package:appflowy_editor/appflowy_editor.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import '../infra/test_editor.dart';
|
||||
|
||||
void main() async {
|
||||
setUpAll(() {
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
});
|
||||
|
||||
group('l10n.dart', () {
|
||||
for (final locale
|
||||
in AppFlowyEditorLocalizations.delegate.supportedLocales) {
|
||||
testWidgets('test localization', (tester) async {
|
||||
final editor = tester.editor..insertTextNode('');
|
||||
await editor.startTesting(locale: locale);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
Loading…
Reference in a new issue