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

Move drawer tests from widgets to material - #188486

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
Swiftaxe:move-drawer-test-to-material
Sep 24, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:masterfrom
Swiftaxe:move-drawer-test-to-material

Conversation

@Swiftaxe

@Swiftaxe Swiftaxe commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

Relocating drawer tests that are testing Material widgets into the materials folder Material UI package.

This test is listed under #177415, but belongs under #177414.
While #177415 instructs against moving tests, these tests only test materials widgets and should be moved per #177414.

Following #177414's guidance for tests that fundamentally test Material, the tests are moved into the existing test/material/drawer_test.dart, and the misplaced test/widgets/drawer_test.dart is deleted.

Note: this PR has been split, and the tests are being moved into Material UI package flutter/packages#12925

Part of #177415

This PR does not require any changes to the flutter/tests repo.

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 Jun 24, 2026
@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. p: material_ui material_ui package in flutter/packages labels Jun 24, 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 consolidates drawer-related tests by moving several test cases—including control, tap, hover, drag, navigator, and semantics tests—from a deleted test file into packages/flutter/test/material/drawer_test.dart. There are no review comments, and I have no feedback to provide.

@Piinks

Piinks commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Given this a cross import fixing widgets importing material (versus material importing something bad), this is not a critical change for pre-release of material_ui.

As such, I've marked this PR as not ready to port to flutter/packages yet.
We'll provide instructions to move this change over to material_ui/cupertino_ui once ready to receive PRs. Thank you!

The changes not in the material or cupertino libraries will remain here, so this PR will need to be split in the future.

(P.S. it also looks like this should update the allow list for cross imports)

@Piinks Piinks added Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. Decoupling: Split PR The PR will need to be split to separate Material & Cupertino changes labels Jun 24, 2026
@flutter-dashboard

Copy link
Copy Markdown

This pull request executed golden file tests, but it has not been updated in a while (20+ days). Test results from Gold expire after as many days, so this pull request will need to be updated with a fresh commit in order to get results from Gold.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Piinks

Piinks commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Hey @Swiftaxe it looks like the analyzer is failing, can you take a look?

@Piinks
Piinks requested a review from Renzo-Olivares July 15, 2026 21:27
@Swiftaxe
Swiftaxe force-pushed the move-drawer-test-to-material branch from 4767798 to 4b1ed1b Compare July 16, 2026 06:18
@Swiftaxe

Copy link
Copy Markdown
Contributor Author

Hey @Swiftaxe it looks like the analyzer is failing, can you take a look?

Thanks for notifying me @Piinks. I pushed a fix and rebased against master. If there is anything else, I will be traveling for two weeks and will have limited ability to fix anything, but I will address anything as soon as I'm back. 😊

Comment thread packages/flutter/test/material/drawer_test.dart Outdated

@Renzo-Olivares Renzo-Olivares 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.

Mostly LGTM, but I had one small comment.

@Swiftaxe
Swiftaxe force-pushed the move-drawer-test-to-material branch from 4b1ed1b to cf03ace Compare August 5, 2026 08:36
@dkwingsmt

dkwingsmt commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

It's time to land this PR! Thank you for waiting.

Our plan is to no longer land changes in material in this repository, but land them in material_ui in https://github.com/flutter/packages/. I suggest splitting this PR as follows:

As always, let me know if you need any help, and I appreciate your contribution! For guidance, instructions, and more details on this porting, see #188444.

@elliette elliette added the waiting for response The Flutter team cannot make further progress on this issue until the original reporter responds label Sep 1, 2026
@Swiftaxe
Swiftaxe force-pushed the move-drawer-test-to-material branch from cf03ace to 0271e56 Compare September 18, 2026 06:40
@github-actions github-actions Bot removed p: material_ui material_ui package in flutter/packages waiting for response The Flutter team cannot make further progress on this issue until the original reporter responds labels Sep 18, 2026
@Swiftaxe

Copy link
Copy Markdown
Contributor Author

It's time to land this PR! Thank you for waiting.

Our plan is to no longer land changes in material in this repository, but land them in material_ui in https://github.com/flutter/packages/. I suggest splitting this PR as follows:

As always, let me know if you need any help, and I appreciate your contribution! For guidance, instructions, and more details on this porting, see #188444.

This PR has been split. Please find the Material UI changes in flutter/packages#12925

@flutter-dashboard

Copy link
Copy Markdown

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #188486 at sha 6e31ca6

@flutter-dashboard flutter-dashboard Bot added the will affect goldens Changes to golden files label Sep 18, 2026

@dkwingsmt dkwingsmt 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.

LGTM

@Renzo-Olivares Renzo-Olivares 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.

LGTM

@Renzo-Olivares
Renzo-Olivares force-pushed the move-drawer-test-to-material branch from 6e31ca6 to 32777ce Compare September 24, 2026 18:24
@Renzo-Olivares Renzo-Olivares added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2026
@auto-submit
auto-submit Bot added this pull request to the merge queue Sep 24, 2026
Merged via the queue into flutter:master with commit b15b583 Sep 24, 2026
23 checks passed
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 24, 2026
@navaronbracke

Copy link
Copy Markdown
Contributor

Hi @Swiftaxe

Just to check in, did we do the same thing? I opened #192106 a while back, but it got a bit stale with code review. Apparently mine was outdated, so I rebased, but then it disappeared into nothingness with 0 changed files. Your PR landed yesterday, so that explains the timing.

Thanks for helping out on cleaning up the test, though!

@dkwingsmt

Copy link
Copy Markdown
Contributor

@navaronbracke Thanks for investigating it and the contribution all the same!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD Decoupling: Not ready to port yet Instructions will be provided when this is ready to move to flutter/packages. Decoupling: Split PR The PR will need to be split to separate Material & Cupertino changes framework flutter/packages/flutter repository. See also f: labels. will affect goldens Changes to golden files

Projects

Development

Successfully merging this pull request may close these issues.

6 participants