import XCTest final class OnboardingUITests: XCTestCase { private var app: XCUIApplication! override func setUpWithError() throws { continueAfterFailure = false app = XCUIApplication() app.launch() } func testContinueShowsWelcomeScreen() throws { let continueButton = app.buttons["onboarding-continue"] XCTAssertTrue( continueButton.waitForExistence(timeout: 5), "Continue button did not appear" ) continueButton.tap() let welcomeTitle = app.staticTexts["welcome-title"] XCTAssertTrue( welcomeTitle.waitForExistence(timeout: 5), "Welcome title did not appear after tapping Continue" ) XCTAssertEqual(welcomeTitle.label, "Welcome") } }