-
-
Save ennioma/9111e8a06aecab335774443a5084718e to your computer and use it in GitHub Desktop.
uitests_siri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --> Test#1 <-- | |
func testMainNavigationFromScratch() { | |
let app = XCUIApplication() | |
app.buttons["mainBtnAccId"].tap() | |
app.alerts["test"].buttons["oK"].tap() | |
} | |
// --> Test#2: resuming from background <-- | |
func testMainNavigationFromBackground() { | |
XCUIDevice.shared().press(XCUIDeviceButton.home) | |
let appName = // get name from bundle | |
XCUIDevice.shared().siriService.activate(voiceRecognitionText: "open \(appName) app") | |
sleep(3) | |
self.checkUI() // some UITest code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment