Initial commit
This commit is contained in:
29
integration_test/flows/basic_messaging.dart
Normal file
29
integration_test/flows/basic_messaging.dart
Normal file
@@ -0,0 +1,29 @@
|
||||
// SPDX-FileCopyrightText: 2019-Present Christian Kußowski
|
||||
// SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:material_ui/material_ui.dart';
|
||||
|
||||
import '../utils/tatu_chat_tester.dart';
|
||||
import 'auth_flows.dart';
|
||||
import 'chat_flows.dart';
|
||||
|
||||
Future<void> basicMessaging(WidgetTester widgetTester) => widgetTester
|
||||
.startTatuChatTest()
|
||||
.then((tester) => tester._basicMessaging());
|
||||
|
||||
extension on TatuChatTester {
|
||||
Future<void> _basicMessaging() async {
|
||||
await ensureLoggedIn();
|
||||
await ensureGroupChatCreated();
|
||||
|
||||
await tapOn(ChatFlows.groupChatName);
|
||||
const testMessage = 'Hello from integration test!';
|
||||
await enterText(Key('chat_input_field'), testMessage);
|
||||
await tapOn(Key('send_button'));
|
||||
await waitFor(testMessage);
|
||||
await goBack();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user