mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 02:33:44 +03:00
Merge pull request #1118 from Yubico/jokkon/integration-test-fixes
Jokkon/integration test fixes
This commit is contained in:
commit
98ba6ea32c
@ -15,4 +15,6 @@
|
||||
*/
|
||||
|
||||
/// list of YubiKey serial numbers which are approved to be used with integration tests
|
||||
var approvedYubiKeys = <String>[];
|
||||
var approvedYubiKeys = <String>[
|
||||
'',
|
||||
];
|
@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:integration_test/integration_test.dart';
|
||||
import 'package:yubico_authenticator/app/views/keys.dart' as app_keys;
|
||||
import 'package:yubico_authenticator/management/views/keys.dart'
|
||||
as management_keys;
|
||||
|
||||
import 'test_util.dart';
|
||||
import 'utils/test_util.dart';
|
||||
|
||||
Key _getCapabilityWidgetKey(bool isUsb, String name) =>
|
||||
Key('management.keys.capability.${isUsb ? 'usb' : 'nfc'}.$name');
|
||||
|
@ -19,8 +19,8 @@ import 'package:integration_test/integration_test.dart';
|
||||
import 'package:yubico_authenticator/core/state.dart';
|
||||
import 'package:yubico_authenticator/oath/keys.dart' as keys;
|
||||
|
||||
import 'oath_test_util.dart';
|
||||
import 'test_util.dart';
|
||||
import 'utils/oath_test_util.dart';
|
||||
import 'utils/test_util.dart';
|
||||
|
||||
void main() {
|
||||
var binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
|
@ -22,7 +22,7 @@ import 'package:yubico_authenticator/oath/views/account_list.dart';
|
||||
import 'package:yubico_authenticator/oath/views/account_view.dart';
|
||||
|
||||
import 'android/util.dart';
|
||||
import 'test_util.dart';
|
||||
import '../utils/test_util.dart';
|
||||
|
||||
class Account {
|
||||
final String? issuer;
|
@ -24,11 +24,11 @@ import 'package:yubico_authenticator/core/state.dart';
|
||||
import 'package:yubico_authenticator/management/views/keys.dart';
|
||||
|
||||
import 'android/util.dart' as android_test_util;
|
||||
import 'approved_yubikeys.dart';
|
||||
import '../_approved_yubikeys.dart';
|
||||
import 'desktop/util.dart' as desktop_test_util;
|
||||
|
||||
const shortWaitMs = 10;
|
||||
const longWaitMs = 50;
|
||||
const shortWaitMs = 500;
|
||||
const longWaitMs = 500;
|
||||
|
||||
/// information about YubiKey as seen by the app
|
||||
String? yubiKeyName;
|
Loading…
Reference in New Issue
Block a user