mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-23 10:46:17 +01:00
Some checks are pending
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,dependency-freshness) (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Todo: fe70b845
28 lines
761 B
Dart
28 lines
761 B
Dart
import 'package:diet_guard_app/screens/log_meal_actions.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('logMealAppBarActions tooltips name each icon', (tester) async {
|
|
await tester.pumpWidget(
|
|
MaterialApp(
|
|
home: Scaffold(
|
|
appBar: AppBar(
|
|
actions: logMealAppBarActions(
|
|
onFoodBank: () {},
|
|
onHistory: () {},
|
|
onCalendar: () {},
|
|
onSettings: () {},
|
|
onBody: () {},
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
|
|
for (final label in ['Body', 'Foods', 'History', 'Calendar', 'Sync']) {
|
|
expect(find.byTooltip(label), findsOneWidget, reason: label);
|
|
}
|
|
});
|
|
}
|