Skip to content

Instantly share code, notes, and snippets.

@chriswebb09
Last active June 4, 2017 04:35
Show Gist options
  • Save chriswebb09/2f362c44bf0dd7c2aa10bb5db0d4ec27 to your computer and use it in GitHub Desktop.
Save chriswebb09/2f362c44bf0dd7c2aa10bb5db0d4ec27 to your computer and use it in GitHub Desktop.
import XCTest
@testable import NewMediaPlayer
class LoginTests: XCTestCase {
func testSubmitButton() {
var username = "example.email@gmail.com"
var password = "123456"
loginView.configure(model: loginViewModel)
loginViewModel.username = username
loginViewModel.password = password
let textField = UITextField()
textField.text = username
loginView.textFieldDidEndEditing(textField)
XCTAssertTrue(loginView.model.submitEnabled == true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment