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

+10 -2
View File
@@ -82,7 +82,13 @@ void main() {
expect(viewsText.style?.fontSize, AppDimens.cardPlayCountFont);
expect(viewsText.style?.fontWeight, FontWeight.w400);
expect(viewsText.style?.color, AppColors.navSelected);
expect(find.descendant(of: cover, matching: views), findsOneWidget);
expect(
find.descendant(
of: find.byKey(const Key('home-feed-cover-clip-anime-card')),
matching: views,
),
findsOneWidget,
);
expect(
tester.getTopRight(cover).dx - tester.getTopRight(views).dx,
AppDimens.cardPlayCountRight,
@@ -201,7 +207,9 @@ Future<void> _pumpCard(
body: Center(
child: SizedBox(
width: 130,
height: 240,
height:
130 / AppDimens.cardCoverAspectRatio +
AppDimens.homeCardBodyExtent,
child: HomeFeedCard(
drama: drama,
onTap: onTap,