Skip to content

[google_maps_flutter] Fix XCUITest on stable#12214

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
stuartmorgan-g:maps-ios-ui-test-swift-fix-stable
Jul 16, 2026
Merged

[google_maps_flutter] Fix XCUITest on stable#12214
auto-submit[bot] merged 3 commits into
flutter:mainfrom
stuartmorgan-g:maps-ios-ui-test-swift-fix-stable

Conversation

@stuartmorgan-g

@stuartmorgan-g stuartmorgan-g commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

#12208 re-enabled these tests using new semantics types, but it turns out that the semantics type had not only changed several years ago when the test was first disabled, but again since the last stable, so the PR failed in post-submit where we run platform tests against stable as well as master.

This adjusts the test to look for the problematic element as any type, so that the test works on both stable and master. Validated locally with stable, since presubmit won't test it.

Part of flutter/flutter#154641

Pre-Review Checklist

Footnotes

  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. 2

flutter#12208 re-enabled these tests
using new semantics types, but it turns out that the semantics type had
not only changed several years ago when the test was first disabled, but
again since the last stable, so the PR failed in post-submit where we
run platform tests against stable as well as master.

This adjusts the test to look for the problematic element in either
element set for now, so that the test works on both stable and master.
Validated locally with stable, since presubmit won't test it.
@stuartmorgan-g

Copy link
Copy Markdown
Collaborator Author

Since it's easy to fix this forward, and the fix can't be tested in presubmit anyway, I'm just fixing instead of reverting.

@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 iOS UI tests across multiple packages to handle a semantics type change for the 'Map coordinates' element between Flutter 3.44 and 3.47 by introducing a busy-wait loop that checks for both staticTexts and otherElements. Feedback suggests replacing this custom loop with app.descendants(matching: .any)["Map coordinates"] to simplify the implementation, avoid unnecessary delays, and ensure correct timeout behavior.

}

let titleBar = app.staticTexts["Map coordinates"]
// The semantics type of this element changed between Flutter 3.44 and 3.47.

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.

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.

If it is then would that change be considered a breaking change if the tests weren't disabled, or these tests only run against flutter stable?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Is it flutter/flutter#186916 ?

Seems likely given https://github.com/flutter/flutter/pull/186916/changes#diff-065d06f784d6617a1d99ad95a472a03f4f50259b09f4bdb427cc0831d22a6b7cR29

I'm not sure how the a11y folks think about changes like this relative to the Flutter SDK's definition of "breaking". This test wasn't specifically trying to assert the specific semantics, it was just a side effect of the implementation.

@stuartmorgan-g stuartmorgan-g added emergency Override tree-status signal (land even with closed tree), combine with the autosubmit label. autosubmit Merge PR when tree becomes green via auto submit App labels Jul 16, 2026
@flutter-dashboard

Copy link
Copy Markdown

Detected the emergency label.

If you add the autosubmit label, the bot will wait until all presubmits pass but ignore the tree status, allowing fixes for tree breakages while still validating that they don't break any existing presubmits.

The "Merge" button is also unlocked. To bypass presubmits as well as the tree status, press the GitHub "Add to Merge Queue".

@auto-submit
auto-submit Bot merged commit 6745e0e into flutter:main Jul 16, 2026
12 of 13 checks passed
pull Bot pushed a commit to safarmer/flutter that referenced this pull request Jul 17, 2026
…er#189659)

flutter/packages@9f95026...4fdc766

2026-07-17 [email protected] [pigeon] allow empty class
(flutter/packages#12181)
2026-07-16 [email protected] [material_ui,
cupertino_ui] Rename l10n macros (flutter/packages#12211)
2026-07-16 [email protected] [ci] Remove manual SwiftPM enabling
step (flutter/packages#12204)
2026-07-16 [email protected] [google_maps_flutter] Fix XCUITest on
stable (flutter/packages#12214)
2026-07-16 [email protected] [google_maps_flutter] Convert
XCUITests to Swift (flutter/packages#12208)
2026-07-16 [email protected] [material_ui] Rename the
remaining templates (flutter/packages#12210)
2026-07-15 [email protected] [material_ui,
cupertino_ui] Rename macro names to package names
(flutter/packages#12198)
2026-07-15 [email protected] [material_ui] Fix upstream localization
test (flutter/packages#12207)
2026-07-15 [email protected] [material_ui, cupertino_ui]
Localizations (flutter/packages#12119)
2026-07-15 [email protected] fix(ci): harden some workflows in packages
(flutter/packages#12178)
2026-07-15 [email protected] Roll Flutter from
846664b to fc1ad95 (18 revisions) (flutter/packages#12203)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD emergency Override tree-status signal (land even with closed tree), combine with the autosubmit label. p: google_maps_flutter platform-ios

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants