重构录制页面,更新对话框逻辑,优化赛事信息粘贴功能,调整相关文本标签。

This commit is contained in:
2026-06-05 15:46:16 +08:00
parent 016aad49b7
commit 0183bd9a6d
6 changed files with 400 additions and 135 deletions

View File

@@ -34,7 +34,7 @@ void main() {
await tester.pumpWidget(const ProviderScope(child: FlutterTemplateApp()));
await tester.pump();
await tester.pump(const Duration(milliseconds: 500));
await tester.pumpAndSettle();
await tester.pump(const Duration(seconds: 1));
}
testWidgets('recording app renders recording page', (tester) async {
@@ -66,7 +66,7 @@ void main() {
clipboardText = validClipboardText;
await tester.tap(find.text('粘贴赛事信息'));
await tester.pumpAndSettle();
await tester.pump(const Duration(milliseconds: 500));
expect(find.text('王东方 丨李想 空中格斗赛'), findsOneWidget);
expect(find.text('粘贴赛事信息'), findsNothing);
@@ -84,7 +84,7 @@ void main() {
await tester.pump();
expect(find.text('王东方 丨李想 空中格斗赛'), findsNothing);
expect(find.text('赛事信息'), findsOneWidget);
expect(find.text('选手信息'), findsOneWidget);
await tester.pump(const Duration(seconds: 2));
});