Created
March 2, 2020 10:55
-
-
Save sukhrobkhakimov/33f89413c4f4c5e9a620fd9ba9da34a5 to your computer and use it in GitHub Desktop.
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
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