test(ui): 更新主题导航与布局断言
This commit is contained in:
1 parent
2d65cd3006
commit
6512808506
6 files changed
+52
-47
No files matched your search
@@ -98,22 +98,12 @@ void main() {
|
||||
tester.getTopRight(walletEntry).dx,
|
||||
closeTo(390 - AppDimens.feedPageHorizontal, 0.1),
|
||||
);
|
||||
final crown = tester.widget<Icon>(
|
||||
find.descendant(
|
||||
of: vipEntry,
|
||||
matching: find.byIcon(Icons.workspace_premium_outlined),
|
||||
),
|
||||
);
|
||||
final gift = tester.widget<Icon>(
|
||||
find.descendant(
|
||||
of: walletEntry,
|
||||
matching: find.byIcon(Icons.card_giftcard_rounded),
|
||||
),
|
||||
);
|
||||
expect(crown.size, AppDimens.homeActionIcon);
|
||||
expect(crown.color, AppColors.homeCrownGold);
|
||||
expect(gift.size, AppDimens.homeActionIcon);
|
||||
expect(gift.color, AppColors.homeGiftPink);
|
||||
expect(crownImage.width, AppDimens.homeActionIcon);
|
||||
expect(crownImage.height, AppDimens.homeActionIcon);
|
||||
expect(crownImage.fit, BoxFit.contain);
|
||||
expect(giftImage.width, AppDimens.homeActionIcon);
|
||||
expect(giftImage.height, AppDimens.homeActionIcon);
|
||||
expect(giftImage.fit, BoxFit.contain);
|
||||
expect(
|
||||
tester
|
||||
.widget<Material>(
|
||||
|
||||
Reference in new issue
Block a user