import { jsx as _jsx } from "react/jsx-runtime";
/**
 * @license
 * Copyright 2026 Google LLC
 * SPDX-License-Identifier: Apache-2.0
 */
import { render } from '../../../test-utils/render.js';
import { describe, it, expect } from 'vitest';
import { SessionBrowserLoading } from './SessionBrowserLoading.js';
import { SessionBrowserError } from './SessionBrowserError.js';
import { SessionBrowserEmpty } from './SessionBrowserEmpty.js';
describe('SessionBrowser UI States', () => {
    it('SessionBrowserLoading renders correctly', async () => {
        const { lastFrame, waitUntilReady } = render(_jsx(SessionBrowserLoading, {}));
        await waitUntilReady();
        expect(lastFrame()).toMatchSnapshot();
    });
    it('SessionBrowserError renders correctly', async () => {
        const mockState = { error: 'Test error message' };
        const { lastFrame, waitUntilReady } = render(_jsx(SessionBrowserError, { state: mockState }));
        await waitUntilReady();
        expect(lastFrame()).toMatchSnapshot();
    });
    it('SessionBrowserEmpty renders correctly', async () => {
        const { lastFrame, waitUntilReady } = render(_jsx(SessionBrowserEmpty, {}));
        await waitUntilReady();
        expect(lastFrame()).toMatchSnapshot();
    });
});
//# sourceMappingURL=SessionBrowserStates.test.js.map