patrol install ps1 guideline
This commit is contained in:
parent
bddbcb8d31
commit
bd0b65354a
|
@ -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',
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue