XCTest mismatch the device window

device : iPhone 8 Plus version: iOS 16 xcode version: 15.0.1 mac os: 13.6.6

When XCTest start to automation running, it does not cover the device's whole window as the picture shows. And my test cases testify that it cannot inspect the element outside of the cover. Is there any solution to make it compatible?

Please file a feedback if you continue to see this issue, and include your iOS and Xcode version, as well as the hardware model https://feedbackassistant.apple.com/

XCTest mismatch the device window
 
 
Q