Skip to content

Commit

Permalink
Increase the timout of iOS smoke tests (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket authored Nov 30, 2023
1 parent 19afea6 commit 8ae5155
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion auth0_flutter/example/ios/UITests/SmokeTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class SmokeTests: XCTestCase {
private let loginButton = "Web Auth Login"
private let logoutButton = "Web Auth Logout"
private let continueButton = "Continue"
private let timeout: TimeInterval = 10
private let timeout: TimeInterval = 30

override func setUp() {
continueAfterFailure = false
Expand All @@ -19,6 +19,7 @@ class SmokeTests: XCTestCase {
func testLogin() {
let app = XCUIApplication()
app.activate()
XCTAssertTrue(app.wait(for: .runningForeground, timeout: timeout))
tap(button: loginButton)
let emailInput = app.webViews.textFields.firstMatch
XCTAssertTrue(emailInput.waitForExistence(timeout: timeout))
Expand All @@ -33,6 +34,7 @@ class SmokeTests: XCTestCase {
func testLogout() {
let app = XCUIApplication()
app.activate()
XCTAssertTrue(app.wait(for: .runningForeground, timeout: timeout))
tap(button: loginButton)
let sessionButton = app.webViews.staticTexts[email]
XCTAssertTrue(sessionButton.waitForExistence(timeout: timeout))
Expand Down

0 comments on commit 8ae5155

Please sign in to comment.