//
//  MoodLoggingEmptyStateTests.swift
//  Tests iOS
//
//  Mood logging from empty state tests.
//

import XCTest

final class MoodLoggingEmptyStateTests: BaseUITestCase {
    override var seedFixture: String? { "empty" }

    /// From empty state, log a "Great" mood -> entry row appears in the list.
    func testLogMood_Great_FromEmptyState() {
        let dayScreen = DayScreen(app: app)

        // The mood header should be visible (empty state shows voting header)
        dayScreen.assertMoodHeaderVisible()

        // Tap "Great" mood button
        dayScreen.logMood(.great)

        // After logging, verify at least one entry row was created.
        dayScreen.assertAnyEntryExists()

        captureScreenshot(name: "mood_logged_great")
    }
}
