Load bundled personal defaults when no saved profile exists
This commit is contained in:
@@ -44,6 +44,16 @@ void main() {
|
||||
Future<void> openSettings(WidgetTester tester) async {
|
||||
await tester.pumpWidget(const MaterialApp(home: LabScreen()));
|
||||
await waitFor(tester, find.textContaining('原生库已加载'));
|
||||
await waitFor(
|
||||
tester,
|
||||
find.byWidgetPredicate(
|
||||
(widget) =>
|
||||
widget is Text &&
|
||||
(widget.data?.contains('已载入默认配置') == true ||
|
||||
widget.data?.contains('已载入默认网络配置') == true ||
|
||||
widget.data?.contains('已自动载入保存的网络配置') == true),
|
||||
),
|
||||
);
|
||||
await tester.tap(find.text('设置').last);
|
||||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user