mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* wip * wip * Update Testing.md * wip * wip * wip * wip * wip: * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * disable library evolution * bump * wip --------- Co-authored-by: Brandon Williams <mbrandonw@hey.com>
24 lines
493 B
Swift
24 lines
493 B
Swift
import XCTest
|
|
|
|
@available(
|
|
*,
|
|
deprecated,
|
|
message: "This is a test that currently fails but should not in the future."
|
|
)
|
|
func XCTTODO(_ message: String) {
|
|
XCTExpectFailure(message)
|
|
}
|
|
|
|
extension XCUIElement {
|
|
func find(
|
|
timeout: TimeInterval = 0.3,
|
|
filePath: StaticString = #filePath,
|
|
line: UInt = #line
|
|
) -> XCUIElement {
|
|
if !self.waitForExistence(timeout: timeout) {
|
|
XCTFail("Failed to find \(self).", file: filePath, line: line)
|
|
}
|
|
return self
|
|
}
|
|
}
|