Skip to content

tests: find the back button outside the navigation bar on an open iPhone Duo - #8185

Merged
osy merged 1 commit into
utmapp:mainfrom
UTMapp-bot:tests/ios-back-to-library-toolbar
Nov 16, 2026
Merged

osy merged 1 commit into
utmapp:mainfrom
UTMapp-bot:tests/ios-back-to-library-toolbar

Conversation

@UTMapp-bot

Copy link
Copy Markdown
Collaborator

On the iPhone Duo simulator, two iOS UI tests fail although the app behaves correctly: VMLibraryFlowTests.testCreatingAVmThroughTheWizardShowsItInTheLibraryAndItsDetails and testCreatingAVmWithAnExistingNameShowsAnError, both with utm.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.

  • Before (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 and BackButton in the toolbar column, outside any navigation bar.
  • After (this branch):
    • iPhone Duo, iOS 27.1: 7 tests, 1 skipped (the iPad-only layout test), 0 failures. The two tests tap the back button, find the VM in the library and continue.
    • iPhone 18 Pro, iOS 27.0: 7 tests, 1 skipped, 0 failures.
    • iPad Pro 13-inch (M5), iOS 27.0 (the device CI uses): 7 tests, 0 failures.

…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
@osy
osy merged commit 0bf4c24 into utmapp:main Nov 16, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants