-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import 'package:flutter/foundation.dart'; | ||
import 'package:flutter/widgets.dart'; | ||
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (server_settings)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (model)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (rule_filter)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (contact)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (core)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (email_recovery)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (fcm)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (forward)
Check notice on line 2 in integration_test/app_test.dart GitHub Actions / analyze-test (default)
|
||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:integration_test/integration_test.dart'; | ||
import 'package:tmail_ui_user/main.dart' as app; | ||
|
||
void main() { | ||
IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | ||
|
||
FlutterExceptionHandler? originalOnError; | ||
|
||
setUp(() { | ||
// Save the original error handler | ||
originalOnError = FlutterError.onError; | ||
}); | ||
|
||
tearDown(() { | ||
// Reset FlutterError.onError to the original handler | ||
FlutterError.onError = originalOnError; | ||
}); | ||
|
||
group('[login]', () { | ||
testWidgets('login with OIDC', (WidgetTester tester) async { | ||
await app.main(); | ||
await tester.pumpAndSettle(); | ||
}); | ||
}); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:integration_test/integration_test_driver.dart'; | ||
|
||
Future<void> main() => integrationDriver(); |