Skip to content

Commit

Permalink
remove flakey test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmroz committed Dec 4, 2024
1 parent 24bb7d1 commit 2ef155c
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions Example/ExampleUITests/ExampleUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,25 @@ final class ExampleUITests: XCTestCase {
app.buttons["Yes"].tap()
}

func testTokenlessWidgetAppears() throws {
app.buttons["Tokenless…"].tap()

_ = app.webViews.staticTexts.firstMatch.waitForExistence(timeout: 60)

let webViewText = app.webViews.staticTexts.firstMatch

XCTAssertTrue(webViewText.label.contains(#"token":null"#))
XCTAssertTrue(webViewText.label.contains(#"amount":"200.00"#))
XCTAssertTrue(webViewText.label.contains(#"currency":"USD"#))

let textField = app.textFields.firstMatch
textField.tap()
textField.typeText("444")
app.buttons["Update"].tap()

XCTAssertTrue(webViewText.label.contains(#""amount":"444""#))
XCTAssertTrue(webViewText.label.contains(#""currency":"USD""#))
}
// Ignoring flakely test
// func testTokenlessWidgetAppears() throws {
// app.buttons["Tokenless…"].tap()
//
// _ = app.webViews.staticTexts.firstMatch.waitForExistence(timeout: 60)
//
// let webViewText = app.webViews.staticTexts.firstMatch
//
// XCTAssertTrue(webViewText.label.contains(#"token":null"#))
// XCTAssertTrue(webViewText.label.contains(#"amount":"200.00"#))
// XCTAssertTrue(webViewText.label.contains(#"currency":"USD"#))
//
// let textField = app.textFields.firstMatch
// textField.tap()
// textField.typeText("444")
// app.buttons["Update"].tap()
//
// XCTAssertTrue(webViewText.label.contains(#""amount":"444""#))
// XCTAssertTrue(webViewText.label.contains(#""currency":"USD""#))
// }

}

0 comments on commit 2ef155c

Please sign in to comment.