mirror of
https://github.com/bitwarden/ios.git
synced 2025-12-11 23:33:36 -06:00
24 lines
481 B
Swift
24 lines
481 B
Swift
// swiftlint:disable:this file_name
|
|
import BitwardenKit
|
|
import ViewInspector
|
|
import XCTest
|
|
|
|
// MARK: - AsyncButtonTests
|
|
|
|
class AsyncButtonTests: BitwardenTestCase {
|
|
// 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)
|
|
}
|
|
}
|