fix(recommend): 恢复进度拖动前浮层状态

This commit is contained in:
Zhou Weidong committed 2026-10-22 20:08:45 +08:00
1 parent c478eebb0e
commit b6666290ba
7 files changed
+47 -43

No files matched your search

@@ -102,9 +102,15 @@ void main() {
await tester.pump(const Duration(milliseconds: 130));
expect(find.byKey(const Key('recommend-top-nav')), findsOneWidget);
expect(tester.getCenter(progress).dy, closeTo(progressCenterY, 0.1));
final navVisibility = find.ancestor(
of: find.byKey(const Key('home-tabs-bar')),
matching: find.byType(Visibility),
);
expect(tester.widget<Visibility>(navVisibility.first).visible, isFalse);
await scrub.up();
await tester.pumpAndSettle();
expect(find.byKey(const Key('recommend-top-nav')), findsOneWidget);
expect(tester.widget<Visibility>(navVisibility.first).visible, isTrue);
await tester.tap(find.byKey(const Key('recommend-tab-playlist')));
await tester.pumpAndSettle();