No description
Find a file
github-actions[bot] a691ad046b
chore: release v0.3.2 (#53)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-10 10:03:03 +02:00
.github chore: Update Flutter version to 3.29 (#50) 2025-04-09 15:39:26 +00:00
assets Initial commit 2023-05-02 14:04:18 +02:00
lib chore: Bump Yaru to ^6.0.0 (#46) 2024-12-19 18:40:29 +01:00
test chore: Update ubuntu_lints to 0.4.0 (#44) 2024-09-18 10:55:23 +02:00
.gitignore Initial commit 2023-05-02 14:04:18 +02:00
.metadata Initial commit 2023-05-02 14:04:18 +02:00
analysis_options.yaml Properly fix analysis_options to use ubuntu_lints 2024-03-07 15:59:31 +01:00
CHANGELOG.md chore: release v0.3.2 (#53) 2025-06-10 10:03:03 +02:00
codecov.yaml Ignore codecov comments 2023-05-04 14:30:55 +02:00
LICENSE Initial commit 2023-05-02 14:04:18 +02:00
pubspec.yaml chore: release v0.3.2 (#53) 2025-06-10 10:03:03 +02:00
README.md Initial commit 2023-05-02 14:04:18 +02:00

Yaru Test

pub license: MPL CI codecov

Provides extensions for testing Yaru Flutter applications.

Usage

dev_dependencies:
  yaru_test: <version>
import 'package:yaru_test/yaru_test.dart';

Before

final button = find.widgetWithText(OutlinedButton, ...);
expect(tester.widget<OutlinedButton>(button).enabled, isTrue);

final checkButton = find.widgetWithText(YaruCheckButton...);
expect(tester.widget<YaruCheckButton>(checkButton).value, isTrue);

final listTile = find.widgetWithText(ListTile, ...);
expect(tester.widget<ListTile>(listTile).onTap, isNull);

final textField = find.widgetWithText(TextField, ...);
expect(tester.widget<TextField>(textField).focusNode?.hasFocus, isTrue);

After

expect(find.button(...), isEnabled);
expect(find.checkButton(...), isChecked);
expect(find.listTile(...), isDisabled);
expect(find.radioButton<T>(...), isChecked);
expect(find.textField(...), hasFocus);