patrol install ps1 guideline

This commit is contained in:
J. A. Messias 2025-01-17 11:36:04 -03:00
parent bddbcb8d31
commit bd0b65354a
2 changed files with 31 additions and 20 deletions

View File

@ -81,26 +81,26 @@ class AuthenticationTest {
}
static Future<void> signUp() async {
// patrolWidgetTest(
// 'Sign Up - credenciais já registradas',
// (PatrolTester tester) async {
// $ = tester;
// $.tester.printToConsole(
// 'Authentication Test - Sign-Up: credenciais já registradas');
//
// final PatrolFinder throwsException = $(Dialog).$(ThrowExceptionWidget);
// final Map<String, String> credentials = {
// 'nameTextFormField': 'app',
// 'emailTextFormField': 'email_app@exemplo.com',
// 'passwordTextFormField': '12345678',
// };
// await _unlogged();
// await $.pumpWidgetAndSettle(const App());
// await _navigateToSignUp($);
// await _auth(credentials, $, throwsException);
// await Future.delayed(const Duration(milliseconds: 500));
// },
// );
patrolWidgetTest(
'Sign Up - credenciais já registradas',
(PatrolTester tester) async {
$ = tester;
$.tester.printToConsole(
'Authentication Test - Sign-Up: credenciais já registradas');
final PatrolFinder throwsException = $(Dialog).$(ThrowExceptionWidget);
final Map<String, String> credentials = {
'nameTextFormField': 'app',
'emailTextFormField': 'email_app@exemplo.com',
'passwordTextFormField': '12345678',
};
await _unlogged();
await $.pumpWidgetAndSettle(const App());
await _navigateToSignUp($);
await _auth(credentials, $, throwsException);
await Future.delayed(const Duration(milliseconds: 500));
},
);
patrolWidgetTest(
'Sign Up - credenciais novas',

View File

@ -0,0 +1,11 @@
# Ativa o 'patrol_cli' globalmente
flutter pub global activate patrol_cli
# Limpa os builds anteriores do Flutter
flutter clean
# Obtém as dependências do Flutter
flutter pub get
# Verifica a configuração do Patrol
patrol doctor