Load bundled personal defaults when no saved profile exists

This commit is contained in:
shenlei
2026-10-10 16:27:22 +09:00
parent 2eb9a6d81c
commit 10b10e5bdf
9 changed files with 87 additions and 0 deletions
+10
View File
@@ -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();
}