todo-app/test/tooltips_test.dart
Krzysztof kuhy Rudnicki 7153630a2e
Some checks are pending
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Audit icons: add 1-word hover tooltips
Todo: fe70b845
2026-11-22 18:30:40 +01:00

22 lines
645 B
Dart

import 'package:flutter_test/flutter_test.dart';
import 'package:todo/ui/capture_screen.dart';
import 'package:todo/ui/text_free_localizations.dart';
import 'capture_screen_harness.dart';
void main() {
testWidgets('app bar icon buttons show one-word tooltips on long-press', (
tester,
) async {
await pumpCapture(tester, prefs: configuredPrefs);
await tester.pump();
expect(find.byTooltip('settings'), findsOneWidget);
expect(find.byTooltip('notes'), findsOneWidget);
await tester.longPress(find.byTooltip('settings'));
await tester.pumpAndSettle();
expect(find.text('settings'), findsOneWidget);
});
}