Last active
December 8, 2024 21:06
-
-
Save colinfwren/b71de704ae6f7621acd85bbf5db4a6b2 to your computer and use it in GitHub Desktop.
Example XCUITest code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTestCase | |
final class ATest: XCTestCase { | |
override func setUpWithError() throws { | |
continueAfterFailure = false | |
} | |
@MainActor | |
func testAThing() { | |
let app = XCUIApplication() | |
app.launch() | |
app.buttons["Button To Press"].tap() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment