Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created August 15, 2020 16:25
Show Gist options
  • Select an option

  • Save cipolleschi/5888a84d208a86dbe9ae42a2cee6f1d4 to your computer and use it in GitHub Desktop.

Select an option

Save cipolleschi/5888a84d208a86dbe9ae42a2cee6f1d4 to your computer and use it in GitHub Desktop.
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