// // MonthViewTests.swift // Tests iOS // // Month view navigation and empty-state tests. // import XCTest final class MonthViewTests: BaseUITestCase { override var seedFixture: String? { "week_of_moods" } /// TC-030: Navigate to Month view and verify the month grid is visible. func testMonthView_ContentLoads() { let tabBar = TabBarScreen(app: app) tabBar.tapMonth() let monthGrid = app.element(UITestID.Month.grid) monthGrid.waitForExistenceOrFail( timeout: navigationTimeout, message: "Month grid should be visible after navigating to Month tab" ) captureScreenshot(name: "month_view_with_data") } } final class MonthViewEmptyTests: BaseUITestCase { override var seedFixture: String? { "empty" } /// TC-031: Navigate to Month view with no data -- should not crash. func testMonthView_EmptyState_NoCrash() { let tabBar = TabBarScreen(app: app) tabBar.tapMonth() // The month grid should still render even with no data let monthGrid = app.element(UITestID.Month.grid) monthGrid.waitForExistenceOrFail( timeout: navigationTimeout, message: "Month grid should render without crashing on empty data" ) captureScreenshot(name: "month_view_empty") } }