refactor(app): 删除未使用的注销原因组件
This commit is contained in:
1 parent
c034627fdb
commit
b4d38f8e10
9 files changed
+1
-231
No files matched your search
@@ -71,23 +71,7 @@ void main() {
|
||||
);
|
||||
|
||||
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,
|
||||
);
|
||||
expect(find.text(l10n.accountDeactivateReason), findsOneWidget);
|
||||
await tester.enterText(
|
||||
find.byKey(const Key('account-deactivate-reason')),
|
||||
'不再使用',
|
||||
|
||||
Reference in new issue
Block a user