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 97% 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..80e688949fc9 100644 --- a/packages/material_ui/temporarily_disabled_tests/floating_action_button_test.dart +++ b/packages/material_ui/test/floating_action_button_test.dart @@ -2,23 +2,22 @@ // 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']) @TestOn('!chrome') library; +import 'dart:async'; 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(); @@ -505,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 @@ -537,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(); @@ -569,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();