fluffychat-fork/integration_test/flows/login_and_chat_backup.dart
2026-03-20 10:34:30 +01:00

23 lines
551 B
Dart

import 'package:flutter_test/flutter_test.dart';
import '../utils/fluffy_chat_tester.dart';
import 'auth_flows.dart';
Future<void> loginAndChatBackup(WidgetTester widgetTester) => widgetTester
.startFluffyChatTest()
.then((tester) => tester._loginAndChatBackup());
extension on FluffyChatTester {
Future<void> _loginAndChatBackup() async {
await login();
// Skip bootstrap
await tapOn('Copy to clipboard');
await tapOn('Next');
await tapOn('Close');
await skipNoNotificationsDialog();
await logout();
}
}