import XCTest

/// Rebuild plan for legacy: Suite0_OnboardingTests.test_onboarding
/// Split into smaller tests to isolate focus/input/navigation failures.
final class Suite0_OnboardingRebuildTests: BaseUITestCase {
    override var relaunchBetweenTests: Bool { true }

    func testR001_onboardingWelcomeLoadsAndCanNavigateToLoginEntry() {
        let welcome = OnboardingWelcomeScreen(app: app)
        welcome.waitForLoad(timeout: defaultTimeout)
        welcome.tapAlreadyHaveAccount()

        let login = LoginScreenObject(app: app)
        login.waitForLoad(timeout: defaultTimeout)
    }

    func testR002_startFreshFlowReachesCreateAccount() {
        let createAccount = TestFlows.navigateStartFreshToCreateAccount(app: app, residenceName: "Rebuild Home")
        createAccount.waitForLoad(timeout: defaultTimeout)
    }

}
