fix(ui): make download file deletion explicit in task dialog (#1622) (#1638)

This commit is contained in:
Codess authored and GitHub committed 2026-11-03 09:27:30 +08:00
1 parent d69874e13e
commit ebfd113360
29 files changed
+44 -39

No files matched your search

@@ -35,6 +35,8 @@ void main() {
await tester.tap(find.text('Open delete dialog'));
await tester.pumpAndSettle();
expect(find.text('Affects 65 downloads and 65 files.'), findsOneWidget);
final deleteFilesSwitch = find.byKey(const ValueKey('task-delete-files-switch'));
expect(tester.widget<shad.Switch>(deleteFilesSwitch).value, isFalse);
expect(keepFiles, isNull);
await tester.tap(find.text('Delete'));
await tester.pumpAndSettle();