2023-02-26 08:27:17 +00:00
|
|
|
import 'package:appflowy/generated/locale_keys.g.dart';
|
|
|
|
import 'package:appflowy/workspace/presentation/home/home_stack.dart';
|
2022-12-20 03:14:42 +00:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
|
|
|
|
import 'base.dart';
|
|
|
|
|
|
|
|
extension AppFlowyLaunch on WidgetTester {
|
|
|
|
Future<void> tapGoButton() async {
|
|
|
|
await tapButtonWithName(LocaleKeys.letsGoButtonText.tr());
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<void> tapCreateButton() async {
|
|
|
|
await tapButtonWithName(LocaleKeys.settings_files_create.tr());
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
Future<void> expectToSeeWelcomePage() async {
|
|
|
|
expect(find.byType(HomeStack), findsOneWidget);
|
|
|
|
expect(find.textContaining('Read me'), findsNWidgets(2));
|
|
|
|
}
|
|
|
|
}
|