Sitelet https://github.com/flutter/flutter/pull/192106
Skip to content

[cross_imports] Remove widgets/drawer_test.dart - #192106

Closed
navaronbracke wants to merge 1 commit into
flutter:masterfrom
navaronbracke:remove_drawer_tests_in_widgets
Closed

navaronbracke wants to merge 1 commit into
flutter:masterfrom
navaronbracke:remove_drawer_tests_in_widgets

Conversation

@navaronbracke

Copy link
Copy Markdown
Contributor

This PR removes the drawer_test.dart under flutter/widgets.

This file contained two sets of tests:

  1. A collection of material_ui tests for the Drawer widget, which are moved to material_ui in [material_ui] port drawer tests over from flutter/widgets packages#12711
  2. Two remaining tests for ModalBarrier, that were actually testing a Drawer:
  • "Dismissible ModalBarrier includes button in semantic tree"
  • "Dismissible ModalBarrier is hidden on Android (back button is used to dismiss)"

These two tests are moved verbatim in flutter/packages#12711 with a change to their test name.

That only leaves the regression testing gap of the original two tests in widgets/drawer_test.dart

However, that should be covered with the test at https://github.com/flutter/flutter/blob/master/packages/flutter/test/widgets/modal_barrier_test.dart#L468

"Dismissible ModalBarrier includes button in semantic tree on iOS, macOS and android"

The only difference there is that Drawer does something different for Android, but that is up to the test in material_ui now.

Part of #177415

If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

If this change needs to override an active code freeze, provide a comment explaining why. The code freeze workflow can be overridden by code reviewers. See pinned issues for any active code freezes with guidance.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 1, 2026
@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label Sep 1, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request deletes the drawer_test.dart test file and removes its entry from the check_tests_cross_imports.dart test list. There are no review comments, and I have no feedback to provide.

@justinmc
justinmc self-requested a review September 1, 2026 22:24
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Sep 4, 2026
This PR moves tests from `packages/flutter` under `widgets/drawer_test.dart` into material_ui.

Most tests were moved verbatim, except for a few tests that I renamed, because the test name was not very clear.
The drawer control tests for Material 2/3 that already existed were updated to test some additional behavior.

Part of flutter/flutter#177028

See flutter/flutter#192106 which removes the tests in flutter/flutter

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
victorsanni pushed a commit to victorsanni/packages that referenced this pull request Sep 9, 2026
)

This PR moves tests from `packages/flutter` under `widgets/drawer_test.dart` into material_ui.

Most tests were moved verbatim, except for a few tests that I renamed, because the test name was not very clear.
The drawer control tests for Material 2/3 that already existed were updated to test some additional behavior.

Part of flutter/flutter#177028

See flutter/flutter#192106 which removes the tests in flutter/flutter

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
victorsanni pushed a commit to victorsanni/packages that referenced this pull request Sep 9, 2026
)

This PR moves tests from `packages/flutter` under `widgets/drawer_test.dart` into material_ui.

Most tests were moved verbatim, except for a few tests that I renamed, because the test name was not very clear.
The drawer control tests for Material 2/3 that already existed were updated to test some additional behavior.

Part of flutter/flutter#177028

See flutter/flutter#192106 which removes the tests in flutter/flutter

## Pre-Review Checklist

**Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

[^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
@navaronbracke
navaronbracke force-pushed the remove_drawer_tests_in_widgets branch from 611d2ec to 8034d34 Compare September 14, 2026 06:50
@navaronbracke navaronbracke added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 25, 2026
@auto-submit

auto-submit Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/192106, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 25, 2026
@navaronbracke
navaronbracke force-pushed the remove_drawer_tests_in_widgets branch from 8034d34 to 1a3d11d Compare September 25, 2026 21:34
@navaronbracke navaronbracke reopened this Sep 25, 2026
@fluttergithubbot

Copy link
Copy Markdown
Contributor

An existing Git SHA, ffc8c7fbe201d3bd2310e08c113f7d10fc2a5313, was detected, and no actions were taken.

To re-trigger presubmits after closing or re-opeing a PR, or pushing a HEAD commit (i.e. with --force) that already was pushed before, push a blank commit (git commit --allow-empty -m "Trigger Build") or rebase to continue.

@navaronbracke

Copy link
Copy Markdown
Contributor Author

Not sure what happened, but Github decided to close the PR after I told it to rebase through it's UI :(

Pushed an empty commit to reopen it

@navaronbracke

Copy link
Copy Markdown
Contributor Author

This is apparently superseded by #188486

which landed yesterday :P

@navaronbracke
navaronbracke deleted the remove_drawer_tests_in_widgets branch September 25, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants