Repository navigation
tests: find the back button outside the navigation bar on an open iPhone Duo - #8185
Merged
Merged
Conversation
…one Duo
On the iPhone Duo, the details of a VM have their toolbar, back button
included, in a column beside them instead of a navigation bar.
backToLibrary() only looked in the navigation bars, so the two library
flow tests that go back to the list after creating a VM failed there
("utm.library.card.UI Test VM did not appear") although the VM was
created. Look for the back button anywhere in the app.
Assisted-by: Claude:claude-opus-5-5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On the iPhone Duo simulator, two iOS UI tests fail although the app behaves correctly:
VMLibraryFlowTests.testCreatingAVmThroughTheWizardShowsItInTheLibraryAndItsDetailsandtestCreatingAVmWithAnExistingNameShowsAnError, both withutm.library.card.UI Test VM did not appear.The VM is created and its details are shown, but
backToLibrary()only looked for the back button (BackButton) in the navigation bars. On an open iPhone Duo the details have their toolbar, back button included, in a column beside them instead of a navigation bar, so the test never returned to the library. The helper now taps the first hittable back button anywhere in the app. CI runs these tests on an iPad, where the details sit beside the list and there is no back button, so CI did not see this.Testing
Tested by an AI agent on a Mac with M2 Max, macOS 27, Xcode 27.1, with
scripts/test_utm.sh -s <device> -only-testing:UTMUITests-iOS.main, 5d5e1b1), iPhone Duo, iOS 27.1: 7 tests, 1 skipped, 2 failures (the two above). The UI hierarchy at the failure shows the VM's details on screen andBackButtonin the toolbar column, outside any navigation bar.