2022-09-08 14:37:00 +02:00
|
|
|
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
import 'package:gecko/models/widgets_keys.dart';
|
|
|
|
import 'package:integration_test/integration_test.dart';
|
|
|
|
import 'general_actions.dart';
|
|
|
|
import 'tests_utility.dart';
|
|
|
|
|
|
|
|
void main() async {
|
|
|
|
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
|
|
|
await dotenv.load();
|
|
|
|
|
2022-09-08 20:15:19 +02:00
|
|
|
testWidgets('Identity revocation', (testerLoc) async {
|
2022-09-08 14:37:00 +02:00
|
|
|
tester = testerLoc;
|
|
|
|
// Connect local node and import test chest in background
|
|
|
|
await bkFastStart();
|
|
|
|
|
|
|
|
// Open chest
|
|
|
|
await firstOpenChest();
|
|
|
|
|
|
|
|
// Revoke test3
|
2022-09-08 20:15:19 +02:00
|
|
|
await spawnBlock();
|
2022-09-08 14:37:00 +02:00
|
|
|
await tapKey(keyOpenWallet(test3.address));
|
|
|
|
await tapKey(keyManageMembership);
|
|
|
|
await tapKey(keyRevokeIdty);
|
|
|
|
await tapKey(keyConfirm);
|
|
|
|
spawnBlock(duration: 2000);
|
2022-09-08 20:15:19 +02:00
|
|
|
await waitFor('validé !', timeout: const Duration(seconds: 4));
|
2022-09-08 14:37:00 +02:00
|
|
|
await tapKey(keyCloseTransactionScreen, duration: 0);
|
|
|
|
await waitFor('Membre validé !', reverse: true);
|
|
|
|
}, timeout: testTimeout());
|
|
|
|
}
|