XCUIApplication stopped seeing full app with xcode version 14.3

Good Afternoon!

Ever since updating to the latest xcode version (14.3), XCUIApplication no longer sees the entirety of the app under test, causing tests to fail and making writing some new tests impossible. Before 14.3, all expected elements were located just fine.

Full troubleshooting steps tried:


Check debugDescription provided by XCUIApplication

Result: elements that exist within the app are omitted. These elements include images, staticTexts, buttons, and otherElements


Ensure the app isn't the problem

  • Re-clone app from repository into fresh git folder
  • Build a branch that previously passed UI tests

Result: Previously passing branches fail tests that validate the missing elements. The missing elements don't appear in the debugDescription but are free to be interacted with through UI actions


Determine if previous xcode versions function

  • Build previously functioning branch using xcode 14.2 and run tests

Result: Tests pass


Rule out environment problems

  • Deployed tests to differing simulators
  • Deployed tests to different iOS versions
  • Deployed tests to physical devices

Result: Tests pass if on xcode 14.2, fail on 14.3. The debugDescription omits the same elements on all devices


I'm not sure what else to try to prompt the return of the elements. Is there something else I can try? Did xcode 14.3 break functionality of XCUIApplication?

I appreciate any help available,

Jon

XCUIApplication stopped seeing full app with xcode version 14.3
 
 
Q