// @vitest-environment jsdom

import { mount } from '@vue/test-utils';
import { describe, expect, it } from 'vitest';
import DoctorAssistantFigure from '../../src/layouts/DoctorAssistantFigure.vue';

describe('DoctorAssistantFigure', () => {
  it('renders the static doctor assistant image and no voice controls', () => {
    const wrapper = mount(DoctorAssistantFigure);

    expect(wrapper.find('img[alt="医生助手"]').exists()).toBe(true);
    expect(wrapper.text()).toContain('医生助手');
    expect(wrapper.text()).toContain('静态形象展示');
    expect(wrapper.text()).not.toContain('可听');
    expect(wrapper.text()).not.toContain('可说');
    expect(wrapper.find('button').exists()).toBe(false);
  });
});
