mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 23:33:36 -06:00
24 lines
467 B
Swift
24 lines
467 B
Swift
import ViewInspector
|
|
import XCTest
|
|
|
|
@testable import AuthenticatorShared
|
|
|
|
// MARK: - AsyncButtonTests
|
|
|
|
class AsyncButtonTests: AuthenticatorTestCase {
|
|
// MARK: Tests
|
|
|
|
func test_button_tap() throws {
|
|
var didTap = false
|
|
let subject = AsyncButton("Test") {
|
|
didTap = true
|
|
}
|
|
|
|
let button = try subject.inspect().find(button: "Test")
|
|
try button.tap()
|
|
|
|
waitFor(didTap)
|
|
XCTAssertTrue(didTap)
|
|
}
|
|
}
|