旋转设备
通过改变 orientation 中的 orientation 可以旋转设备:
XCUIDevice.shared().orientation = .landscapeLeft
XCUIDevice.shared().orientation = .portrait
通过改变 orientation 中的 orientation 可以旋转设备:
XCUIDevice.shared().orientation = .landscapeLeft
XCUIDevice.shared().orientation = .portrait