[material_ui] Remove widgets import in scaffold_test.dart#11973
Conversation
There was a problem hiding this comment.
Code Review
This pull request removes the @Skip annotation from scaffold_test.dart to re-enable the test file, updates the import path for semantics_tester.dart, and reorders the package imports. There are no review comments, and there is no feedback to provide.
| await tester.pumpWidget(MaterialApp(routes: routes)); | ||
|
|
||
| Navigator.pushNamed(rootKey.currentContext!, '/scaffold'); | ||
| unawaited(Navigator.pushNamed(rootKey.currentContext!, '/scaffold')); |
There was a problem hiding this comment.
is there a warning for this change?
There was a problem hiding this comment.
I feel we should remove the unawaited here just to make our coding style in sync.
There was a problem hiding this comment.
It might be required. I think it was staged in flutter/flutter and waiting on the code freeze. The lint might be enabled in flutter/packages, where it's still pending in flutter/flutter. flutter/flutter#168555
There was a problem hiding this comment.
Yes, there was 2 failures in linux_analyze_stable test if we don't remove it.
scaffold_test.dartscaffold_test.dart
Part of flutter/flutter#182636 and flutter/flutter#188395
This PR:
semantics_tester.dartfrommaterial_ui/temporarily_disabled_tests/scaffold_test.dart.semantics_tester.darthas existed inmaterial_ui, so we can directly import../test/semantics_tester.dart';test/folder.Pre-Review Checklist
[shared_preferences]///).