Skip to content

Remove semantics_tester import from cupertino/slider_test.dart#184805

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
Sanaullah49:chore/182636-cupertino-slider-semantics
May 6, 2026
Merged

Remove semantics_tester import from cupertino/slider_test.dart#184805
auto-submit[bot] merged 3 commits into
flutter:masterfrom
Sanaullah49:chore/182636-cupertino-slider-semantics

Conversation

@Sanaullah49

Copy link
Copy Markdown
Contributor

Part of #182636

Summary

Remove the semantics_tester.dart cross-import from cupertino/slider_test.dart.

What changed

  • Replaced the deprecated SemanticsTester/TestSemantics assertion in the slider semantics test with tester.getSemantics(...) and matchesSemantics(...)
  • Removed the ../widgets/semantics_tester.dart import

Testing

  • ../../bin/flutter analyze test/cupertino/slider_test.dart
  • ../../bin/flutter test test/cupertino/slider_test.dart

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. f: cupertino flutter/packages/flutter/cupertino repository labels Apr 9, 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 updates the Slider Semantics test in packages/flutter/test/cupertino/slider_test.dart by replacing SemanticsTester with tester.ensureSemantics() and matchesSemantics. The changes include removing the SemanticsTester import, updating the semantics handle management, and refining the expectation logic to use tester.getSemantics on the CupertinoSlider. I have no feedback to provide.

@github-actions github-actions Bot removed the CICD Run CI/CD label Apr 27, 2026
@Sanaullah49

Copy link
Copy Markdown
Contributor Author

Pushed a formatter-only follow-up (a77d30a) to address the Linux analyze/format failure. Local checks now pass:

  • bin/cache/dart-sdk/bin/dart --enable-asserts dev/tools/bin/format.dart
  • ./bin/dart analyze packages/flutter/test/cupertino/slider_test.dart
  • ./bin/flutter test packages/flutter/test/cupertino/slider_test.dart --plain-name "Slider Semantics"

The remaining red check is the Material/Cupertino code-freeze guard because this PR touches packages/flutter/test/cupertino/**; that needs an override code freeze label if this should land during the freeze.

@Sanaullah49

Copy link
Copy Markdown
Contributor Author

The remaining failing check is the Material/Cupertino code-freeze guard because this PR touches packages/flutter/test/cupertino/**. I do not have permission to add labels on flutter/flutter; could a maintainer please add the label if this semantics-test-only cleanup should land during the freeze?

@Sanaullah49

Copy link
Copy Markdown
Contributor Author

The remaining failing check is the Material/Cupertino code-freeze guard because this PR touches packages/flutter/test/cupertino/**. I do not have permission to add labels on flutter/flutter; could a maintainer please add the override code freeze label if this semantics-test-only cleanup should land during the freeze?

@justinmc justinmc 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 👍 . Thanks for migrating TestSemantics the right way. I will add the freeze override.

@justinmc justinmc added CICD Run CI/CD override code freeze Override an active code freeze. labels Apr 29, 2026
@justinmc justinmc moved this from Done to In Progress in Test cross-imports Review Queue Apr 29, 2026
@victorsanni victorsanni added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 30, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 30, 2026
@auto-submit

auto-submit Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184805, 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 commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184805, because - The status or check suite Check Code Freeze has failed. Please fix the issues identified (or deflake) before re-applying this label.

@victorsanni victorsanni added CICD Run CI/CD override code freeze Override an active code freeze. autosubmit Merge PR when tree becomes green via auto submit App and removed CICD Run CI/CD override code freeze Override an active code freeze. labels Apr 30, 2026
@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Apr 30, 2026
@auto-submit

auto-submit Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

autosubmit label was removed for flutter/flutter/184805, because - The status or check suite Check Code Freeze has failed. Please fix the issues identified (or deflake) before re-applying this label.

  • The status or check suite Check Code Freeze has failed. Please fix the issues identified (or deflake) before re-applying this label.

@Sanaullah49

Copy link
Copy Markdown
Contributor Author

Hi @justinmc @navaronbracke — CI is all green and this PR is approved. Could you please merge or add the autosubmit label when you get a chance? Thanks!

@dkwingsmt dkwingsmt added the autosubmit Merge PR when tree becomes green via auto submit App label May 6, 2026
@auto-submit auto-submit Bot added this pull request to the merge queue May 6, 2026
Merged via the queue into flutter:master with commit 30dbe06 May 6, 2026
100 of 103 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Test cross-imports Review Queue May 6, 2026
@flutter-dashboard flutter-dashboard Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD f: cupertino flutter/packages/flutter/cupertino repository 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.

5 participants