Skip to content

Instantly share code, notes, and snippets.

@sukhrobkhakimov
Created March 2, 2020 10:55
Show Gist options
  • Save sukhrobkhakimov/33f89413c4f4c5e9a620fd9ba9da34a5 to your computer and use it in GitHub Desktop.
Save sukhrobkhakimov/33f89413c4f4c5e9a620fd9ba9da34a5 to your computer and use it in GitHub Desktop.
import XCTest
class SignInUITests: XCTestCase {
func testSignIn() {
// Arrange
let emailTextField = Accessibility.SignIn.emailTextField.element
let passwordTextField = Accessibility.SignIn.passwordTextField.element
let signInButton = Accessibility.SignIn.signInButton.element
// Act
emailTextField.tap()
emailTextField.typeText("test@example.com")
passwordTextField.tap()
passwordTextField.typeText("test")
signInButton.tap()
// Assert
// Write your assertions here. E.g. XCTAssertTrue(someSuccessAlert.exists)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment