Skip to content

Commit

Permalink
Fix failing tests due to sign-in widget changes
Browse files Browse the repository at this point in the history
  • Loading branch information
IldarAbdullin-okta committed May 29, 2019
1 parent 566ee5f commit 5a7d96a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Example/Okta_UITests/UITestUtils.swift
Expand Up @@ -37,7 +37,12 @@ public struct UITestUtils {

usernameField.tap()
usernameField.typeText(username)
passwordField.tap()
if webViewsQuery.buttons["Next"].exists {
webViewsQuery.buttons["Next"].tap()
XCTAssertTrue(webViewsQuery.secureTextFields["Password"].waitForExistence(timeout: 10))
}
webViewsQuery.secureTextFields["Password"].tap()
sleep(1)
passwordField.typeText(password)
webViewsQuery.buttons["Sign In"].tap()
}
Expand Down

0 comments on commit 5a7d96a

Please sign in to comment.