Repository navigation
Open
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Some test files import test utilities from other library's tests. This won't be possible once Material and Cupertino are moved to the flutter/packages repo.
For example:
| import '../widgets/semantics_tester.dart'; |
Umbrella issue: #177028
What to do about it
- Move the util to flutter_test if:
- it's used in many places.
- it has a solid API that has been in use for awhile and we are ready to commit to it.
- it's of public-level quality.
- Duplicate the util if:
- its implementation is trivial, or it's just a constant, etc.
- we are worried about its API needing changes and don't want to make it public.
- Any other options? I don't think it will be possible to import it any other way.
The utils
Rendering:
Widgets:
- TestSemantics
- A very common one.
- TestListTile
- editable_text_utils
- May contain several members that need to move. Reland Standardize on Test* widgets in *_tester.dart files #182632 is moving TestTextField out of this file right now. I see lots of uses of textOffsetToPosition too.
- textOffsetToPosition
- MockClipboard
- live_text_utils.dart
- text_selection_toolbar_utils.dart
- simullateSystemBack
- FeedbackTester
- MockProcessTextHandler
- verifySliverGeometry
- FakeView
- TestBorder
Tests to fix:
Material importing Widgets
$ rg "import '\.\.\/widgets" packages/flutter/test/material -l
- material/segmented_button_test.dart
- material/bottom_navigation_bar_test.dart
- material/tabs_test.dart
- material/ink_well_test.dart
- material/list_tile_test.dart
- material/icon_button_test.dart
- material/user_accounts_drawer_header_test.dart
- material/scaffold_test.dart
- material/dropdown_test.dart
- material/selectable_text_test.dart
- material/range_slider_test.dart
- material/floating_action_button_test.dart
- material/text_button_test.dart
- material/navigation_rail_test.dart
- material/date_picker_test.dart
- material/outlined_button_test.dart
- material/selection_area_test.dart
- material/filter_chip_test.dart
- material/drawer_test.dart
- material/checkbox_list_tile_test.dart
- material/slider_test.dart
- material/menu_anchor_test.dart
- material/radio_test.dart
- material/toggle_buttons_test.dart
- material/autocomplete_test.dart
- material/search_anchor_test.dart
- material/app_bar_test.dart
- material/text_selection_toolbar_test.dart
- material/radio_list_tile_test.dart
- material/search_test.dart
- material/animated_icons_test.dart
- material/text_selection_test.dart
- material/adaptive_text_selection_toolbar_test.dart
- material/text_field_test.dart
- PR: Remove clipboard_utils cross-imports from material and cupertino tests #184278
- PR: Remove feedback_tester cross-imports from material tests #184279
- PR: Remove trivial test utility cross-imports from material and cupertino… #184295
- PR: Remove live_text_utils cross-imports from material and cupertino tests #184517
- PR: Remove editable_text_utils cross-imports from material and cupertino … #184519
- PR: [material_ui] Enable
text_field_testpackages#12022
- material/checkbox_test.dart
- material/bottom_sheet_test.dart
- material/calendar_date_picker_test.dart
- material/switch_test.dart
- material/text_form_field_test.dart
- material/dialog_test.dart
- material/popup_menu_test.dart
- material/raw_material_button_test.dart
- material/date_range_picker_test.dart
- material/sliver_app_bar_test.dart
- material/dropdown_menu_test.dart
- material/card_test.dart
- material/flexible_space_bar_test.dart
- material/chip_test.dart
- material/elevated_button_test.dart
- material/switch_list_tile_test.dart
- material/tooltip_theme_test.dart
- material/input_date_picker_form_field_test.dart
- material/app_bar_sliver_test.dart
- material/material_button_test.dart
- material/data_table_test.dart
- material/filled_button_test.dart
- material/material_test.dart
- material/time_picker_test.dart
Cupertino importing Widgets
$ rg "import '\.\.\/widgets" packages/flutter/test/cupertino -l
- cupertino/slider_test.dart
- cupertino/tab_scaffold_test.dart
- cupertino/switch_test.dart
- cupertino/sliding_segmented_control_test.dart
- cupertino/nav_bar_test.dart
- cupertino/radio_test.dart
- cupertino/action_sheet_test.dart
- cupertino/text_selection_toolbar_test.dart
- cupertino/segmented_control_test.dart
- cupertino/text_form_field_row_test.dart
- cupertino/text_field_test.dart
- cupertino/sheet_test.dart
- cupertino/text_selection_test.dart
- cupertino/route_test.dart
- cupertino/checkbox_test.dart
- cupertino/button_test.dart
- cupertino/picker_test.dart
- cupertino/adaptive_text_selection_toolbar_test.dart
- cupertino/bottom_tab_bar_test.dart
- cupertino/dialog_test.dart
Cupertino importing Rendering
$ rg "import '\.\.\/rendering" packages/flutter/test/cupertino -l
Reacted by Nate Wilson
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsp: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Type
Projects
- StatusShow more project fieldsDone
- StatusShow more project fieldsDone
Activity
Fix TestBorder cross-import in material_test.dart (flutter#182636)
Fix TestBorder cross-import in material_test.dart (flutter#182636)
90 remaining items
[cupertino_ui] Re-enable `text_field_test.dart` (#12067)
[cupertino_ui] Migrate `segmented_control_test.dart` to `SemanticsHan…
[cupertino_ui] Migrate `nav_bar_test.dart` to `SemanticsHandle` (#11980)
[cupertino_ui] Migrate `route_test.dart` to `SemanticsHandle` (#11993)
[cupertino_ui] Migrate `sliding_segmented_control_test.dart` to `Sema…
[cupertino_ui] Migrate `bottom_tab_bar_test.dart` to `SemanticsHandle` (
[cupertino_ui] Enable `switch_test.dart` (#12076)
[material_ui] Enable localized `time_picker_test` cases (#12391)
Piinks commentedon Oct 19, 2026
@justinmc is this resolved now that material and cupertino are stable in flutter/packages?