test(ui): 更新主题导航与布局断言

This commit is contained in:
Zhou Weidong committed 2026-10-26 22:49:23 +08:00
1 parent 2d65cd3006
commit 6512808506
6 files changed
+52 -47

No files matched your search

+2 -3
View File
@@ -14,7 +14,6 @@ import 'package:fruitshorts/core/data/services/auth_session_store.dart';
import 'package:fruitshorts/core/platform/haptics.dart';
import 'package:fruitshorts/core/theme/app_colors.dart';
import 'package:fruitshorts/core/theme/app_dimens.dart';
import 'package:fruitshorts/core/theme/app_theme.dart';
import 'package:fruitshorts/l10n/app_localizations.dart';
import 'package:fruitshorts/pages/auth/auth_view.dart';
@@ -136,7 +135,7 @@ void main() {
cardDecoration.borderRadius,
BorderRadius.circular(AppDimens.authCardRadius),
);
expect(cardDecoration.boxShadow, contains(AppTheme.cardShadow));
expect(cardDecoration.boxShadow, isNull);
expect(card.padding, const EdgeInsets.all(20));
final email = tester.widget<TextField>(
@@ -222,7 +221,7 @@ void main() {
find.descendant(of: back, matching: find.byType(Material)),
)
.color,
AppColors.card,
AppColors.transparent,
);
});