fix(following): 收紧取消追剧确认弹窗
This commit is contained in:
1 parent
8d511933df
commit
72dcb92aca
2 files changed
+45
No files matched your search
@@ -143,6 +143,31 @@ void main() {
|
||||
await tester.tap(find.byKey(const Key('following-cancel-follow')));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Unfollow the selected dramas?'), findsOneWidget);
|
||||
final dialog = tester.widget<AlertDialog>(find.byType(AlertDialog));
|
||||
expect(dialog.contentPadding, const EdgeInsets.all(20));
|
||||
expect(dialog.actionsPadding, const EdgeInsets.fromLTRB(20, 0, 20, 20));
|
||||
expect(
|
||||
tester
|
||||
.getSize(
|
||||
find.descendant(
|
||||
of: find.byType(AlertDialog),
|
||||
matching: find.byType(TextButton),
|
||||
),
|
||||
)
|
||||
.height,
|
||||
32,
|
||||
);
|
||||
expect(
|
||||
tester
|
||||
.getSize(
|
||||
find.descendant(
|
||||
of: find.byType(AlertDialog),
|
||||
matching: find.byType(FilledButton),
|
||||
),
|
||||
)
|
||||
.height,
|
||||
32,
|
||||
);
|
||||
await tester.tap(
|
||||
find.descendant(
|
||||
of: find.byType(AlertDialog),
|
||||
|
||||
Reference in new issue
Block a user