From ea65d4d9529c4d8ed6493ab43b29ef435dce359f Mon Sep 17 00:00:00 2001 From: Drawner Date: Thu, 23 Nov 2023 22:39:09 -0600 Subject: [PATCH] 4.7.0+1 Took 39 minutes --- CHANGELOG.md | 3 ++- example/integration_test/src/tests/menu/about_menu.dart | 5 ++++- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f2884d6..00cedee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,9 @@ -## 4.7.0 +## 4.7.0+1 November 23, 2023 - app_state.dart build() function incorrectly wrapped in Builder() - Removed unused classes FieldWidgets InheritedStates and ScheduleNotifications +- Corrected Testing of a 'Close' button with if (button.evaluate().isEmpty) { ## 4.6.1 November 21, 2023 diff --git a/example/integration_test/src/tests/menu/about_menu.dart b/example/integration_test/src/tests/menu/about_menu.dart index 840c84a..10af7b4 100644 --- a/example/integration_test/src/tests/menu/about_menu.dart +++ b/example/integration_test/src/tests/menu/about_menu.dart @@ -17,7 +17,10 @@ Future openAboutMenu(WidgetTester tester) async { /// Close window // Find the appropriate button even if translated. - final button = find.widgetWithText(TextButton, L10n.s('CLOSE')); + var button = find.widgetWithText(TextButton, L10n.s('CLOSE')); + if (button.evaluate().isEmpty) { + button = find.widgetWithText(TextButton, L10n.s('Close')); + } expect(button, findsOneWidget, reason: _location); await tester.tap(button); await tester.pumpAndSettle(); diff --git a/pubspec.yaml b/pubspec.yaml index b44ab3f..4ef41e6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ homepage: https://www.andrioussolutions.com repository: https://github.com/AndriousSolutions/fluttery_framework issue_tracker: https://github.com/AndriousSolutions/fluttery_framework/issues?q=is%3Aissue+is%3Aopen -version: 4.7.0 +version: 4.7.0+1 environment: sdk: '>=2.19.0 <4.0.0'