chore: Split up tests even more
This commit is contained in:
parent
e959c24a05
commit
bb188724ae
6 changed files with 51 additions and 27 deletions
|
|
@ -1,9 +1,13 @@
|
|||
import 'package:fluffychat/pages/sign_in/view_model/model/public_homeserver_data.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
import '../data/environment_constants.dart';
|
||||
import '../utils/fluffy_chat_tester.dart';
|
||||
|
||||
Future<void> finalLogout(WidgetTester widgetTester) =>
|
||||
widgetTester.startFluffyChatTest().then((tester) => tester.logout());
|
||||
|
||||
extension AuthFlows on FluffyChatTester {
|
||||
Future<void> login() async {
|
||||
await waitFor('Sign in');
|
||||
|
|
@ -18,6 +22,7 @@ extension AuthFlows on FluffyChatTester {
|
|||
}
|
||||
|
||||
Future<void> logout() async {
|
||||
await ensureLoggedIn();
|
||||
await tapOn(Key('accounts_and_settings_buttons'));
|
||||
await tapOn('Settings');
|
||||
await scrollUntilVisible('Logout');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue