feat: 调整品牌开屏与纯黑原生启动

This commit is contained in:
Zhou Weidong committed 2026-10-22 23:15:27 +08:00
1 parent 7804809d83
commit 25d90e1383
27 files changed
+88 -14

No files matched your search

+4 -2
View File
@@ -36,7 +36,7 @@ void main() {
AppConfig.ready = Future<void>.value();
});
testWidgets('should_show_home_shell_and_grid_skeleton_while_catalog_loads', (
testWidgets('should_show_brand_splash_and_grid_skeleton_while_loading', (
tester,
) async {
final repository = _PendingCatalogRepository();
@@ -47,12 +47,14 @@ void main() {
expect(find.byKey(const Key('home-grid-header')), findsOneWidget);
expect(find.byKey(const Key('home-grid-skeleton')), findsOneWidget);
expect(find.byKey(const Key('home-tabs-bar')), findsOneWidget);
expect(find.byKey(const Key('startup-splash')), findsNothing);
expect(find.byKey(const Key('startup-splash')), findsOneWidget);
expect(find.byKey(const Key('startup-splash-logo')), findsOneWidget);
expect(find.byType(CircularProgressIndicator), findsNothing);
repository.complete(_feed);
await tester.pumpAndSettle();
expect(find.byKey(const Key('startup-splash')), findsNothing);
expect(find.byKey(const Key('home-grid-skeleton')), findsNothing);
expect(find.byKey(const Key('home-grid')), findsOneWidget);
});