3136e5bb7e
Replace the tabbed Settings flow with a single grouped page that searches and lazily loads server-backed sections. Preserve existing settings behavior while adding inline loading and retry states and updating coverage for the new navigation model.
12 lines
434 B
Dart
12 lines
434 B
Dart
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
/// Scrolls the Settings page to the heading [title] and lets a lazy section
|
|
/// that the scroll reaches load its content.
|
|
Future<void> openSettingsSection(WidgetTester tester, String title) async {
|
|
final heading = find.text(title).first;
|
|
await tester.ensureVisible(heading);
|
|
await tester.pump();
|
|
await tester.pump();
|
|
await tester.pump(const Duration(milliseconds: 300));
|
|
}
|