feat: migrate Flutter to Cupertino with daily logs and computer groups
This commit is contained in:
1 parent
c568749d23
commit
87e1fff59b
22 files changed
+808
-55
No files matched your search
@@ -1,5 +1,9 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:ads_manager/ui/app_widgets.dart' show AdsCupertinoApp;
|
||||
|
||||
import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoTextField;
|
||||
|
||||
import 'package:material_ui/material_ui.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:ads_manager/data/manager_repository.dart';
|
||||
@@ -49,13 +53,13 @@ void main() {
|
||||
const Device('busy-phone', true),
|
||||
];
|
||||
await tester.pumpWidget(
|
||||
MaterialApp(
|
||||
AdsCupertinoApp(
|
||||
home: ManagerView(model: m, onQuit: () async {}),
|
||||
),
|
||||
);
|
||||
expect(find.text('test-phone'), findsOneWidget);
|
||||
expect(find.text('其他客户端占用'), findsOneWidget);
|
||||
await tester.enterText(find.byType(TextField), 'test');
|
||||
await tester.enterText(find.byType(CupertinoTextField), 'test');
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('busy-phone'), findsNothing);
|
||||
await tester.tap(find.text('连接配置'));
|
||||
|
||||
Reference in new issue
Block a user