Skip to content

Instantly share code, notes, and snippets.

@ngtk
Last active April 22, 2019 11:33
Show Gist options
  • Select an option

  • Save ngtk/16acbe04733c2cad21a15a5da4426010 to your computer and use it in GitHub Desktop.

Select an option

Save ngtk/16acbe04733c2cad21a15a5da4426010 to your computer and use it in GitHub Desktop.
func testSignup() {
let app = XCUIApplication()
let signUpPage = WelcomePage(app: app)
let completePage = signUpPage.
.typeEmail("[email protected]")
.typePassword("jg28hwm90iflz")
.typeName("Smith")
.tapCreateAccountButton()
_ = completePage
.then { XCTAssertEqual($0.headingText, "Welcome, Smith!") } // It is like devxoul/Then
.pickCompany("Japan")
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment