Skip to content

Remove Material import from selectable region context menu tests#186672

Closed
MarlonJD wants to merge 7 commits into
flutter:masterfrom
MarlonJD:selectable-region-context-menu-no-material
Closed

Remove Material import from selectable region context menu tests#186672
MarlonJD wants to merge 7 commits into
flutter:masterfrom
MarlonJD:selectable-region-context-menu-no-material

Conversation

@MarlonJD

@MarlonJD MarlonJD commented May 18, 2026

Copy link
Copy Markdown
Contributor

Part of #177412
Refs #177028

This removes the Material dependency from widgets/selectable_region_context_menu_test.dart by replacing MaterialApp with TestWidgetsApp and using widgets text selection controls in the right-click selection test.

Validation:

  • dart analyze packages/flutter/test/widgets/selectable_region_context_menu_test.dart
  • ../../bin/flutter test --platform chrome test/widgets/selectable_region_context_menu_test.dart (from packages/flutter)

@github-actions github-actions Bot added the framework flutter/packages/flutter repository. See also f: labels. label May 18, 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 refactors the selectable_region_context_menu_test.dart file to remove dependencies on the Material library. It replaces MaterialApp with TestWidgetsApp, updates imports to use package:flutter/widgets.dart, and switches from materialTextSelectionControls to emptyTextSelectionControls. I have no feedback to provide as there were no review comments.

@MarlonJD

Copy link
Copy Markdown
Contributor Author

Local verification passed for this PR: dart analyze packages/flutter/test/widgets/selectable_region_context_menu_test.dart and ../../bin/flutter test --platform=chrome test/widgets/selectable_region_context_menu_test.dart from packages/flutter. I do not have permission to add labels; could someone with repo permissions add the CICD label when ready?

@MarlonJD
MarlonJD changed the base branch from main to master May 18, 2026 18:29
@victorsanni victorsanni added the CICD Run CI/CD label May 18, 2026

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

Can we remove this file from dev/bots/check_tests_cross_imports.dart?

@github-actions github-actions Bot removed the CICD Run CI/CD label May 19, 2026
@victorsanni victorsanni added CICD Run CI/CD override code freeze Override an active code freeze. labels May 19, 2026
@victorsanni victorsanni moved this from Todo to In Progress in Test cross-imports Review Queue May 19, 2026
@MarlonJD

Copy link
Copy Markdown
Contributor Author

Windows tool_integration_tests_8_10 looks unrelated to this intentionally scoped selectable-region cleanup (Build 8681247460964752065). I tried to rerun the check from GitHub, but the check rerun API is not available from my side. Could a Flutter team member rerun that check? I am treating it as infra unless it reproduces.

@MarlonJD

Copy link
Copy Markdown
Contributor Author

Closing this in favor of #186611, which already owns the selectable_region_context_menu_test.dart cleanup. Sorry for the duplicate queue entry.

@MarlonJD MarlonJD closed this May 22, 2026
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Test cross-imports Review Queue May 22, 2026
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. override code freeze Override an active code freeze.

Projects

Development

Successfully merging this pull request may close these issues.

3 participants