uncomment tests

This commit is contained in:
jantunesmessias 2025-02-10 14:07:38 -03:00
parent b0e4e86391
commit a4b7ee3cd0
2 changed files with 17 additions and 50 deletions

View File

@ -32,7 +32,6 @@ import 'app_test.dart';
import 'fuzzer/fuzzer.dart';
import 'package:patrol_finders/patrol_finders.dart';
import 'package:integration_test/integration_test.dart';
export 'package:flutter_test/flutter_test.dart';
export 'package:patrol/patrol.dart';
@ -72,26 +71,26 @@ void main() {
// setUp(() async {});
// tearDown(() async {});
// WelcomeTest.signInToSignUp();
// WelcomeTest.signUpToSignIn();
WelcomeTest.signInToSignUp();
WelcomeTest.signUpToSignIn();
// AuthenticationTest.signIn();
// AuthenticationTest.signUp();
// AuthenticationTest.signOut();
AuthenticationTest.signIn();
AuthenticationTest.signUp();
AuthenticationTest.signOut();
// AuthenticationTest.recovery();
// ModularizationTest.switchLicense();
// ModularizationTest.containLicense();
ModularizationTest.switchLicense();
ModularizationTest.containLicense();
// MenuTest.navToEntries();
// MenuTest.containEntries();
// MenuTest.labels2AppbarConsistency();
MenuTest.navToEntries();
MenuTest.containEntries();
MenuTest.labels2AppbarConsistency();
// LocalsTest.setLocal();
// LocalsTest.unlinkLocal();
LocalsTest.setLocal();
LocalsTest.unlinkLocal();
// VehicleTest.vehiclePage();
// VehicleTest.historyScreen();
VehicleTest.vehiclePage();
VehicleTest.historyScreen();
VehicleTest.registerScreen();
// VehicleTest.updateScreen();
VehicleTest.updateScreen();
}

View File

@ -537,40 +537,8 @@ void showSnackbarMessenger(
int duration = 4,
}) {
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Row(
children: [
if (loading)
Padding(
padding: const EdgeInsetsDirectional.only(end: 10.0),
child: SizedBox(
height: 20,
width: 20,
child: CircularProgressIndicator(
color: FlutterFlowTheme.of(context).info,
),
),
),
Text(
message,
style: TextStyle(
color: FlutterFlowTheme.of(context).info,
fontSize: LimitedFontSizeUtil.getBodyFontSize(context),
),
),
],
),
duration: Duration(seconds: duration),
backgroundColor: error
? FlutterFlowTheme.of(context).error
: FlutterFlowTheme.of(context).success,
behavior: SnackBarBehavior.floating,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(30),
),
),
);
ScaffoldMessenger.of(context)
.showSnackBar(showSnackbar(context, message, error));
}
SnackBar showSnackbar(