旋轉裝置

通過改變 orientation 中的 orientation 可以旋轉裝置:

XCUIDevice.shared().orientation = .landscapeLeft
XCUIDevice.shared().orientation = .portrait