feat(app): 完善播放协议搜索与空状态

This commit is contained in:
Zhou Weidong committed 2026-10-23 12:38:47 +08:00
1 parent 671e0ce143
commit ef29fc5f15
85 files changed
+2976 -768

No files matched your search

+18
View File
@@ -70,6 +70,24 @@ void main() {
auth: auth,
);
final l10n = await AppLocalizations.delegate.load(const Locale('en'));
final titleTop = tester
.getTopLeft(find.text(l10n.accountDeactivateReason))
.dy;
final fieldTop = tester
.getTopLeft(find.byKey(const Key('account-deactivate-reason')))
.dy;
expect(fieldTop, greaterThan(titleTop));
expect(find.text(l10n.accountDeactivateReasonUnused), findsOneWidget);
await tester.tap(find.byKey(const Key('account-deactivate-reason-0')));
await tester.pumpAndSettle();
expect(
tester
.widget<TextField>(find.byKey(const Key('account-deactivate-reason')))
.controller
?.text,
l10n.accountDeactivateReasonUnused,
);
await tester.enterText(
find.byKey(const Key('account-deactivate-reason')),
'不再使用',
+16
View File
@@ -61,6 +61,22 @@ void main() {
expect(find.byKey(const Key('mine-account-devices')), findsOneWidget);
expect(find.byKey(const Key('mine-account-export')), findsOneWidget);
expect(find.byKey(const Key('mine-account-deactivate')), findsOneWidget);
expect(find.byKey(const Key('settings-notices')), findsNothing);
final profileTop = tester
.getTopLeft(find.byKey(const Key('mine-account-profile')))
.dy;
final devicesTop = tester
.getTopLeft(find.byKey(const Key('mine-account-devices')))
.dy;
final exportTop = tester
.getTopLeft(find.byKey(const Key('mine-account-export')))
.dy;
final deactivateTop = tester
.getTopLeft(find.byKey(const Key('mine-account-deactivate')))
.dy;
expect(devicesTop, greaterThan(profileTop));
expect(exportTop, greaterThan(devicesTop));
expect(deactivateTop, greaterThan(exportTop));
});
}