This commit is contained in:
J. A. Messias 2025-01-23 17:45:59 -03:00
parent a78956ba16
commit 18ecfcade8
1 changed files with 24 additions and 1 deletions

View File

@ -197,7 +197,30 @@ class AuthenticationTest {
);
}
static Future<void> recovery() async {}
static Future<void> recovery() async {
patrolWidgetTest(
'ForgotPassword',
(PatrolTester tester) async {
$ = tester;
$.tester
.printToConsole('Authentication Test - ForgotPassword');
final PatrolFinder throwsException = $(Dialog).$(ThrowExceptionWidget);
final credentials = {
'emailTextFormField': 'email_app@exemplo.com',
};
await _unlogged();
await $.pumpWidgetAndSettle(const App());
await _navigateToSignIn($);
await _auth(credentials, $, throwsException);
},
);
}
}
Future<void> _auth(