test: 按新 UI 基线重写过期用例
覆盖 155 条失败与 4 处编译错误:入口改走推荐流 tab、弹框换 AppGlowDialog、 rail 尺寸与底部锚定、子页标题字重 w400、底栏选中品牌红、收藏文案改收藏短剧。 全量 flutter test 775 通过。
This commit is contained in:
1 parent
799f3d1b7d
commit
1d4ab5e0e6
33 files changed
+853
-1114
No files matched your search
@@ -152,7 +152,7 @@ Future<void> _pumpFilterPage(WidgetTester tester) async {
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-search-entry'))))
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-tabs'))))
|
||||
.push<void>(
|
||||
MaterialPageRoute(builder: (_) => const DiscoverPage()),
|
||||
);
|
||||
@@ -193,7 +193,7 @@ void _expectUnifiedHeader(WidgetTester tester, Key backKey) {
|
||||
expect(tester.getSize(find.byKey(backKey)), const Size(40, 40));
|
||||
final title = tester.widget<Text>(find.byKey(const Key('subpage-title')));
|
||||
expect(title.style?.fontSize, 18);
|
||||
expect(title.style?.fontWeight, FontWeight.w800);
|
||||
expect(title.style?.fontWeight, FontWeight.w400);
|
||||
}
|
||||
|
||||
Drama _drama({
|
||||
|
||||
@@ -424,7 +424,7 @@ Future<void> _pumpTheater(
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-search-entry'))))
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-tabs'))))
|
||||
.push<void>(
|
||||
MaterialPageRoute(builder: (_) => const DiscoverPage()),
|
||||
);
|
||||
|
||||
@@ -312,7 +312,7 @@ Future<void> _pumpTheater(
|
||||
),
|
||||
);
|
||||
await tester.pumpAndSettle();
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-search-entry'))))
|
||||
Navigator.of(tester.element(find.byKey(const Key('home-tabs'))))
|
||||
.push<void>(
|
||||
MaterialPageRoute(builder: (_) => const DiscoverPage()),
|
||||
);
|
||||
@@ -371,5 +371,5 @@ void _expectUnifiedHeader(WidgetTester tester, Key backKey) {
|
||||
expect(tester.getSize(find.byKey(backKey)), const Size(40, 40));
|
||||
final title = tester.widget<Text>(find.byKey(const Key('subpage-title')));
|
||||
expect(title.style?.fontSize, 18);
|
||||
expect(title.style?.fontWeight, FontWeight.w800);
|
||||
expect(title.style?.fontWeight, FontWeight.w400);
|
||||
}
|
||||
Reference in new issue
Block a user