TF-4236 Remove setupPreLogin and disposeAfterTest
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:flutter_test/flutter_test.dart';
|
||||||
import 'package:tmail_ui_user/features/labels/presentation/models/label_action_type.dart';
|
import 'package:tmail_ui_user/features/labels/presentation/models/label_action_type.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
||||||
@@ -14,11 +13,6 @@ class EditATagScenario extends BaseTestScenario
|
|||||||
with ProvisioningLabelScenarioMixin {
|
with ProvisioningLabelScenarioMixin {
|
||||||
const EditATagScenario(super.$);
|
const EditATagScenario(super.$);
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> setupPreLogin() async {
|
|
||||||
PlatformInfo.isIntegrationTesting = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> runTestLogic() async {
|
Future<void> runTestLogic() async {
|
||||||
final threadRobot = ThreadRobot($);
|
final threadRobot = ThreadRobot($);
|
||||||
@@ -56,9 +50,4 @@ class EditATagScenario extends BaseTestScenario
|
|||||||
Future<void> _expectLabelWithNewNameUpdated(String name) async {
|
Future<void> _expectLabelWithNewNameUpdated(String name) async {
|
||||||
await expectViewVisible($(name));
|
await expectViewVisible($(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
@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:flutter_test/flutter_test.dart';
|
||||||
import 'package:labels/labels.dart';
|
import 'package:labels/labels.dart';
|
||||||
import 'package:tmail_ui_user/features/search/email/presentation/search_email_view.dart';
|
import 'package:tmail_ui_user/features/search/email/presentation/search_email_view.dart';
|
||||||
@@ -14,11 +13,6 @@ class SearchEmailWithTagScenario extends BaseTestScenario
|
|||||||
with ProvisioningLabelScenarioMixin {
|
with ProvisioningLabelScenarioMixin {
|
||||||
const SearchEmailWithTagScenario(super.$);
|
const SearchEmailWithTagScenario(super.$);
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> setupPreLogin() async {
|
|
||||||
PlatformInfo.isIntegrationTesting = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> runTestLogic() async {
|
Future<void> runTestLogic() async {
|
||||||
const emailUser = String.fromEnvironment('BASIC_AUTH_EMAIL');
|
const emailUser = String.fromEnvironment('BASIC_AUTH_EMAIL');
|
||||||
@@ -84,9 +78,4 @@ class SearchEmailWithTagScenario extends BaseTestScenario
|
|||||||
|
|
||||||
expect(listEmailTileWithTag.length, greaterThanOrEqualTo(emailCount));
|
expect(listEmailTileWithTag.length, greaterThanOrEqualTo(emailCount));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
|
||||||
Future<void> disposeAfterTest() async {
|
|
||||||
PlatformInfo.isIntegrationTesting = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user