// // AppLaunchTests.swift // SportsTimeUITests // // Verifies app boot, bootstrap, and initial screen rendering. // import XCTest final class AppLaunchTests: BaseUITestCase { /// Verifies the app boots, shows the home screen, and all 5 tabs are present. @MainActor func testAppLaunchShowsHomeWithAllTabs() { let home = HomeScreen(app: app) home.waitForLoad() // Assert: Hero card text visible XCTAssertTrue(home.adventureAwaitsText.exists, "Hero card should display 'Adventure Awaits'") // Assert: All tabs present home.assertTabBarVisible() captureScreenshot(named: "HomeScreen-Launch") } /// Verifies the bootstrap loading indicator disappears and content renders. @MainActor func testBootstrapCompletesWithContent() { let home = HomeScreen(app: app) home.waitForLoad() // Assert: Start Planning button is interactable (proves bootstrap loaded data) XCTAssertTrue(home.startPlanningButton.isHittable, "Start Planning should be hittable after bootstrap") } }