diff --git a/integration_test/auth_test.dart b/integration_test/auth_test.dart index 769cdd33..e46c5d6f 100644 --- a/integration_test/auth_test.dart +++ b/integration_test/auth_test.dart @@ -81,26 +81,26 @@ class AuthenticationTest { } static Future 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 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 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', diff --git a/scripts/patrol_install.ps1 b/scripts/patrol_install.ps1 new file mode 100644 index 00000000..91f2bfae --- /dev/null +++ b/scripts/patrol_install.ps1 @@ -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