mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 21:29:36 +02:00
fix(metadata): clarify online autofill controls
This commit is contained in:
1 parent
95e0e3197d
commit
e03b4f5d8d
2 files changed
+35
-11
No files matched your search
@@ -20,6 +20,7 @@ import 'package:spotiflac_android/widgets/app_alert_dialog.dart';
|
||||
import 'package:spotiflac_android/widgets/app_switch.dart';
|
||||
import 'package:spotiflac_android/widgets/batch_convert_sheet.dart';
|
||||
import 'package:spotiflac_android/widgets/mornye_context_menu.dart';
|
||||
import 'package:spotiflac_android/widgets/mornye_chrome.dart';
|
||||
import 'package:spotiflac_android/widgets/re_enrich_field_dialog.dart';
|
||||
import 'package:spotiflac_android/widgets/selection_action_button.dart';
|
||||
import 'package:spotiflac_android/widgets/selection_bottom_bar.dart';
|
||||
@@ -339,6 +340,28 @@ void main() {
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.text('Edited track'), findsOneWidget);
|
||||
expect(find.widgetWithText(AppActionButton, 'Save'), findsOneWidget);
|
||||
await tester.scrollUntilVisible(
|
||||
find.text('Auto-fill from online'),
|
||||
-250,
|
||||
scrollable: find
|
||||
.descendant(
|
||||
of: find.byType(ListView).last,
|
||||
matching: find.byType(Scrollable),
|
||||
)
|
||||
.first,
|
||||
);
|
||||
await _tapVisible(tester, find.text('Auto-fill from online'));
|
||||
await _tapVisible(tester, find.text('None'));
|
||||
final search = find.widgetWithText(AppActionButton, 'Find metadata');
|
||||
expect(tester.widget<AppActionButton>(search).onPressed, isNull);
|
||||
await _tapVisible(tester, find.text('All'));
|
||||
expect(tester.widget<AppActionButton>(search).onPressed, isNotNull);
|
||||
expect(
|
||||
tester
|
||||
.widgetList<MornyeFilterChip>(find.byType(MornyeFilterChip))
|
||||
.every((chip) => chip.selected),
|
||||
isTrue,
|
||||
);
|
||||
expect(tester.takeException(), isNull);
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user