Created
August 15, 2020 16:25
-
-
Save cipolleschi/5888a84d208a86dbe9ae42a2cee6f1d4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func testStartingFromHomeScreen() { | |
| self.app.launch() | |
| let homeView = self.app.otherElements[HomeView.AccessibilityIdentifiers.homeView.rawValue] | |
| XCTAssertTrue(homeView.exists) | |
| XCTAssertEqual(self.app.staticTexts[HomeView.AccessibilityIdentifiers.name.rawValue].label, "Riccardo") | |
| XCTAssertEqual(self.app.staticTexts[HomeView.AccessibilityIdentifiers.surname.rawValue].label, "Cipolleschi") | |
| XCTAssertEqual(self.app.staticTexts[HomeView.AccessibilityIdentifiers.age.rawValue].label, "32") | |
| XCTAssertEqual(self.app.staticTexts[HomeView.AccessibilityIdentifiers.coins.rawValue].label, "0") | |
| XCTAssertTrue(self.app.buttons[HomeView.AccessibilityIdentifiers.purchase.rawValue].exists) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment