Skip to content

[google_maps_flutter_ios] Failing native tests #154641

@bparrishMines

Description

@bparrishMines

The native tests in GoogleMapsUITests.m are consistently failing locally and on CI for Flutter main branch. I've also noticed this has been failing for over a week.

/Volumes/Work/s/w/ir/x/w/packages/packages/google_maps_flutter/google_maps_flutter_ios/example/ios14/ios/RunnerUITests/GoogleMapsUITests.m:53: error: -[GoogleMapsUITests testUserInterface] : failed - Failed due to not able to find User interface
    t =    63.39s Tear Down
Test Case '-[GoogleMapsUITests testUserInterface]' failed (63.614 seconds).
Test Suite 'GoogleMapsUITests' failed at 2024-09-03 11:59:47.863.
	 Executed 4 tests, with 4 failures (0 unexpected) in 256.426 (256.427) seconds
Test Suite 'RunnerUITests.xctest' failed at 2024-09-03 11:59:47.863.
	 Executed 4 tests, with 4 failures (0 unexpected) in 256.426 (256.428) seconds
Test Suite 'All tests' failed at 2024-09-03 11:59:47.864.
	 Executed 4 tests, with 4 failures (0 unexpected) in 256.426 (256.429) seconds
2024-09-03 12:00:13.009 xcodebuild[50120:308772] [MT] IDETestOperationsObserverDebug: 291.207 elapsed -- Testing started completed.
2024-09-03 12:00:13.009 xcodebuild[50120:308772] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2024-09-03 12:00:13.009 xcodebuild[50120:308772] [MT] IDETestOperationsObserverDebug: 291.207 sec, +291.207 sec -- end

Test session results, code coverage, and logs:
	/Users/chrome-bot/Library/Developer/Xcode/DerivedData/Runner-bynswbqjzzfjuuheqrjysabjmvyt/Logs/Test/Run-Runner-2024.09.03_11-54-50--0700.xcresult

Failing tests:
	-[GoogleMapsUITests testMapClickPage]
	-[GoogleMapsUITests testMapCoordinatesPage]
	-[GoogleMapsUITests testMarkerDraggingCallbacks]
	-[GoogleMapsUITests testUserInterface]

** TEST FAILED **

Testing started

[packages/google_maps_flutter/google_maps_flutter_ios completed in 6m 23s]

See https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737792882371508001/+/u/Run_package_tests/native_test/stdout?format=raw for full logs.

The problem seems to be that XCUIElement is failing to find the Flutter element in the example app:

Screenshot 2024-09-04 at 3 36 08 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.c: disabled testTracks the restoration of a disabled testc: regressionIt was better in the past than it is nowp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions