From f111b452696c8d8071df72c94000b478c65feedf Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Thu, 25 Jun 2026 14:52:58 -0700 Subject: [PATCH 1/2] Enable floating_action_button_test --- .../floating_action_button_test.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) rename packages/material_ui/{temporarily_disabled_tests => test}/floating_action_button_test.dart (99%) diff --git a/packages/material_ui/temporarily_disabled_tests/floating_action_button_test.dart b/packages/material_ui/test/floating_action_button_test.dart similarity index 99% rename from packages/material_ui/temporarily_disabled_tests/floating_action_button_test.dart rename to packages/material_ui/test/floating_action_button_test.dart index d9c00fdb5a52..593d63911d55 100644 --- a/packages/material_ui/temporarily_disabled_tests/floating_action_button_test.dart +++ b/packages/material_ui/test/floating_action_button_test.dart @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -@Skip( - 'This file is skipped due to a cross-import that needs to be fixed. Tracked in https://github.com/flutter/flutter/issues/177028.', -) // This file is run as part of a reduced test set in CI on Mac and Windows // machines. @Tags(['reduced-test-set']) @@ -14,11 +11,12 @@ library; import 'dart:ui'; import 'package:flutter/foundation.dart' show kIsWeb; -import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_test/flutter_test.dart'; -import '../widgets/feedback_tester.dart'; -import '../widgets/semantics_tester.dart'; +import 'package:material_ui/material_ui.dart'; + +import 'feedback_tester.dart'; +import 'semantics_tester.dart'; void main() { final material3Theme = ThemeData(); From 4e13c8bb2fd561113a6d9f46c9558b3dc2cd60b7 Mon Sep 17 00:00:00 2001 From: Elliott Brooks <21270878+elliette@users.noreply.github.com> Date: Fri, 26 Jun 2026 13:35:00 -0700 Subject: [PATCH 2/2] Add unawaited --- .../test/floating_action_button_test.dart | 73 ++++++++++--------- 1 file changed, 40 insertions(+), 33 deletions(-) diff --git a/packages/material_ui/test/floating_action_button_test.dart b/packages/material_ui/test/floating_action_button_test.dart index 593d63911d55..80e688949fc9 100644 --- a/packages/material_ui/test/floating_action_button_test.dart +++ b/packages/material_ui/test/floating_action_button_test.dart @@ -8,6 +8,7 @@ @TestOn('!chrome') library; +import 'dart:async'; import 'dart:ui'; import 'package:flutter/foundation.dart' show kIsWeb; @@ -503,17 +504,19 @@ void main() { ), ), ); - Navigator.push( - theContext, - PageRouteBuilder( - pageBuilder: - ( - BuildContext context, - Animation animation, - Animation secondaryAnimation, - ) { - return const Placeholder(); - }, + unawaited( + Navigator.push( + theContext, + PageRouteBuilder( + pageBuilder: + ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) { + return const Placeholder(); + }, + ), ), ); await tester @@ -535,17 +538,19 @@ void main() { ), ), ); - Navigator.push( - theContext, - PageRouteBuilder( - pageBuilder: - ( - BuildContext context, - Animation animation, - Animation secondaryAnimation, - ) { - return const Placeholder(); - }, + unawaited( + Navigator.push( + theContext, + PageRouteBuilder( + pageBuilder: + ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) { + return const Placeholder(); + }, + ), ), ); await tester.pump(); @@ -567,17 +572,19 @@ void main() { ), ), ); - Navigator.push( - theContext, - PageRouteBuilder( - pageBuilder: - ( - BuildContext context, - Animation animation, - Animation secondaryAnimation, - ) { - return const Placeholder(); - }, + unawaited( + Navigator.push( + theContext, + PageRouteBuilder( + pageBuilder: + ( + BuildContext context, + Animation animation, + Animation secondaryAnimation, + ) { + return const Placeholder(); + }, + ), ), ); await tester.pump();