Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the timout of iOS smoke tests #359

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading