TF-4236 Set setUp and tearDown for Patrol
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:labels/labels.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/widgets/labels/label_list_view.dart';
|
||||
@@ -14,11 +13,6 @@ class DisplayEmptyViewWhenOpenTagScenario extends BaseTestScenario
|
||||
with ProvisioningLabelScenarioMixin {
|
||||
const DisplayEmptyViewWhenOpenTagScenario(super.$);
|
||||
|
||||
@override
|
||||
Future<void> setupPreLogin() async {
|
||||
PlatformInfo.isIntegrationTesting = true;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> runTestLogic() async {
|
||||
const emailUser = String.fromEnvironment('BASIC_AUTH_EMAIL');
|
||||
@@ -89,9 +83,4 @@ class DisplayEmptyViewWhenOpenTagScenario extends BaseTestScenario
|
||||
$(find.text(AppLocalizations().youDoNotHaveAnyEmailTaggedWithThis)),
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> disposeAfterTest() async {
|
||||
PlatformInfo.isIntegrationTesting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:labels/labels.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox/presentation/widgets/labels/label_list_view.dart';
|
||||
@@ -13,11 +12,6 @@ class DisplayViewWithAllEmailWithTagScenario extends BaseTestScenario
|
||||
with ProvisioningLabelScenarioMixin {
|
||||
const DisplayViewWithAllEmailWithTagScenario(super.$);
|
||||
|
||||
@override
|
||||
Future<void> setupPreLogin() async {
|
||||
PlatformInfo.isIntegrationTesting = true;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> runTestLogic() async {
|
||||
const emailUser = String.fromEnvironment('BASIC_AUTH_EMAIL');
|
||||
@@ -74,9 +68,4 @@ class DisplayViewWithAllEmailWithTagScenario extends BaseTestScenario
|
||||
|
||||
expect(listEmailTileWithTag.length, greaterThanOrEqualTo(emailCount));
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> disposeAfterTest() async {
|
||||
PlatformInfo.isIntegrationTesting = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user