fix(player): 预解码观看全集首帧
This commit is contained in:
1 parent
1fc8c4924e
commit
c8ec481fc9
5 files changed
+145
-26
No files matched your search
@@ -558,7 +558,14 @@ Future<void> _waitForFullPlayer(WidgetTester tester) async {
|
||||
() => Future<void>.delayed(const Duration(milliseconds: 10)),
|
||||
);
|
||||
await tester.pump(const Duration(milliseconds: 16));
|
||||
if (find.byType(PlayerPage).evaluate().length > 1) return;
|
||||
if (find
|
||||
.byWidgetPredicate(
|
||||
(widget) => widget is PlayerPage && !widget.homeMode,
|
||||
)
|
||||
.evaluate()
|
||||
.isNotEmpty) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
fail('full player route was not pushed after frame capture');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user